Drag and drop a text

Bonjour,
Est il possible de faire drag and drop d'une zone text sous CVI?
Cordialement.

Hi,
I guess I have to correct myself - the initial answer was the result of a quick experiment using one of my programs. So by default drag and drop is not enabled for strings. However, there is a function in the toolbox library that promises to enable Windows drag and drop, EnableDragAndDrop (int panelHandle).
Wolfgang
PS: The attribute ATTR_ENABLE_DRAG_DROP is avalable only for tree items and tab pages.

Similar Messages

  • Trying to drag and drop a text parameter, but it only applies to one letter

    Hiya,
    In Motion 3, you could drag and drop a Text - Style Parameter to another text object.
    Now, in Motion 4, when I try to drag a Parameter it only applies to the first letter of my text object.
    So when I drag my Glow from one object to another, my Bleary In Behavior has a blue glow on T in THIS and a yellow glow on HIS in THIS.
    I'm guessing this has to do with the ability to adjust each letter with the glyph tool. However, it won't allow me to drag the Parameter to each individual letter...
    Which I see a need for...
    But why would I want to do a time consuming thing like that?
    It's stupid.
    Any advice is much appreciated!
    Thank you

    Well, I'm not sure what to say. I can't replicate your problem. I can drag the outline parameters onto a text object in the viewer, layers pane, or timeline and it copies it exactly as it did in Motion 3, over the entire text object.
    However, if I have the glyph tool selected and try to do the same thing, it crashes Motion 100% of the time.
    Neither situation is what you're reporting though. It helped me find a bug, and something to avoid however.
    Andy

  • Drag and drop external text into a Flex component

    Hi,
    is there any way to allow drag and drop of external text (for
    example, selected text from another browser or even from the
    address bar) into a Flex component like TextArea? I know how to
    drag and drop between two different Flex components but in this
    case, the source is external. There must be something I can do to
    TextArea like its dragdrop property to allow this feature... any
    help would be greatly appreciated.
    Thanks,
    Josh

    Short answer: Yes, as long as it is an AIR app.
    Browser-based Flex apps do not have access to
    ClipBoardFormats, so I'm not sure it is possible to do what I think
    you want to do -- have a web-based Flex app that allows you to drag
    and drop selected text from other apps. Most possibly because of
    the security sandbox that the Flash player runs in.
    However, if you wanted to do it in an AIR app, I built this
    as an example for you (you can view a "cleaner" version with proper
    indents at
    http://pastebin.com/f741cbac8
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="initDandD();" width="500" height="600">
    <mx:Script>
    <![CDATA[
    public function initDandD():void {
    addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER,
    onDragIn);
    addEventListener(NativeDragEvent.NATIVE_DRAG_DROP,
    onDragDrop);
    private function onDragIn(e:NativeDragEvent):void {
    if(e.clipboard.hasFormat(ClipboardFormats.TEXT_FORMAT)) {
    NativeDragManager.acceptDragDrop(this);
    private function onDragDrop(e:NativeDragEvent):void {
    var myString:String =
    e.clipboard.getData(ClipboardFormats.TEXT_FORMAT) as String;
    myTextArea.text = myString;
    ]]>
    </mx:Script>
    <mx:TextArea id="myTextArea" width="326"
    height="262"/>
    </mx:WindowedApplication>

  • Drag and drop the text and image

    Hi,
    I need help in drag and drop text and image.
    I am able to drag and drop the text and image in doc but  i want to drag the text in text frame and image in image frame only.
    For this how to get textframe id or is there any other way to do this. Pls help me if anyone know how to do this one.
    Thanks
    Arun

    This thread is pretty old, but this can help anyone in the future:
    To handle a drop in InDesign, you have to implement your own custom CDragDropTargetFlavorHelper. You can find a working example in SDK Sample. Take a look at BasicDragDrop.sdk project in the SDK.

  • Drag and Drop Dynamic Text

    my code:
    hazard1.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    hazard1.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {
    event.target.startDrag(true);
    function dropIt(event:MouseEvent):void {
    event.target.stopDrag(true);
    I receive error:
    ReferenceError: Error #1069: Property stopDrag not found on
    flash.text.TextField and there is no default value.
    at dragdrop_as3_complete_fla::MainTimeline/dropIt()
    Im trying to drag a movie clip that contains a dynamic text
    field only. Is there something that I'm missing

    var dyntext:Sprite = new Sprite();
    dyntext.x = hazard1.x;
    dyntext.y = hazard1.y;
    hazard1.x = hazard1.y = 0;
    addChild(dyntext);
    dyntext.addChild(hazard1);
    dyntext.mouseChildren = false; // OPTIONAL - STOPS TEXT FROM
    BEING SELECTED
    dyntext.buttonMode = true; // OPTIONAL - SHOWS BUTTON CURSOR
    dyntext.addEventListener(MouseEvent.MOUSE_DOWN, textDown);
    dyntext.addEventListener(MouseEvent.MOUSE_UP, textUp);
    function textDown(ev:Event):void {
    dyntext.startDrag();
    function textUp(ev:Event):void {
    dyntext.stopDrag();

  • Drag and drop text fields

    Hey.  trying to drag and drop a text field.  So I have created a text field, and saved it as a swf.  I then load it in using xml and the loader class.  When I go to pick it up, i get the error
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@10d59b51 to flash.display.Sprite.
        at GalleryNew_fla::MainTimeline/pickUp()[GalleryNew_fla.MainTimeline::frame1:81]
    It is specifically pointing to
    function pickUp(event:MouseEvent):void {
        getPosition(event.target);
        stage.addChild(event.target as DisplayObject);
        Sprite(event.target).startDrag(true);
    Should I be casting it to something else or something?
    cheers

    I will try and explain what I am doing better, because I am problably doing this tottally wrong, I am just mixing a lot of code to get something together.
    Basically, I have several buttons.  If a button is pressed, it displays objects in a sort of holder.  These objects might be images, animations etc.  When these are placed in the holder, they can be dragged and dropped.  If they are not dropped in the right location, they go back to their position in the holder.
    So, my first two buttons work great.  These just deal with images.  button5, which I am working on now, is dealing with textfields.  So, it should load my textfield swfs, place them in the holder, and made to be drop and draggable.  Problem is, I am using the code which i used for the images, which is where I might be going wrong.
    If I show you the code, maybe you could suggest a better way to do things
    Cheers
    import caurina.transitions.*;
    var xml:XML;
    var xmlList:XMLList;
    var urlLoader:URLLoader;
    button1.addEventListener(MouseEvent.CLICK, click_handler);
    button2.addEventListener(MouseEvent.CLICK, click_handler2);
    button5.addEventListener(MouseEvent.CLICK, click_handler5);
    function click_handler(event_object:MouseEvent) {
         removeChildren(photoContainer);
         while (arrayThumb.length > 0) {
              arrayThumb.pop();
         loadXML("pics.xml");
    function click_handler2(event_object:MouseEvent) {
         removeChildren(photoContainer);
         while (arrayThumb.length > 0) {
              arrayThumb.pop();
         loadXML("pics2.xml");
    function click_handler5(event_object:MouseEvent) {
         removeChildren(photoContainer);
         while (arrayThumb.length > 0) {
              arrayThumb.pop();
         loadXML("pics5.xml");
    function removeChildren(doc:DisplayObjectContainer):void {
         while (doc.numChildren > 0) {
              doc.removeChildAt(0);
    function loadXML(xmlS:String):void {
         var urlRequest:URLRequest=new URLRequest(xmlS);
         urlLoader = new URLLoader();
         urlLoader.load(urlRequest);
         urlLoader.addEventListener(Event.COMPLETE,urlLoaded);
    var arrayThumb:Array=[];
    var photoContainer:Sprite = new Sprite();
    addChild(photoContainer);
    photoContainer.mask=thumb_holder;
    function urlLoaded(event:Event):void {
         urlLoader.removeEventListener(Event.COMPLETE,urlLoaded);
         xml=XML(event.target.data);
         xmlList=xml.children();
         for (var i:int=0; i<xmlList.length(); i++) {
              var thumb:Thumbnail=new Thumbnail(xmlList[i].url);
              arrayThumb.push(thumb);
              arrayThumb[i].y=150.5;
              arrayThumb[i].x=i*110+280;
              photoContainer.addChild(thumb);
              arrayThumb[i].addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
              arrayThumb[i].addEventListener(MouseEvent.MOUSE_UP, dropIt);
    var xPos:int;
    var yPos:int;
    function getPosition(target:Object):void {
         xPos=target.x;
         yPos=target.y;
    function pickUp(event:MouseEvent):void {
         getPosition(event.target);
         stage.addChild(event.target as DisplayObject);
         Sprite(event.target).startDrag(true);
    function dropIt(event:MouseEvent):void {
         Sprite(event.target).stopDrag();
         if (event.target.hitTestObject(getChildByName("movie"))) {
              var my_loader:Loader = new Loader();
              var myString:String=event.target.url;
              var newString:String=myString.replace("pics/","");
              my_loader.load(new URLRequest("pics2/" + newString));
              movie.addChild(my_loader);
              this.photoContainer.addChild(event.target as DisplayObject);
              event.target.x=xPos;
              event.target.y=yPos;
         } else {
              this.photoContainer.addChild(event.target as DisplayObject);
              event.target.x=xPos;
              event.target.y=yPos;
    var minScroll:Number=0;
    var maxScroll:Number=track.width-handler.width;
    var draging:Boolean=false;
    var bounds:Rectangle=new Rectangle(handler.x,handler.y,maxScroll,0);
    handler.buttonMode=true;
    handler.addEventListener(MouseEvent.MOUSE_DOWN,beginDrag);
    function beginDrag(event:MouseEvent):void {
         handler.startDrag(false,bounds);
         draging=true;
         handler.addEventListener(Event.ENTER_FRAME,checkingProgress);
         stage.addEventListener(MouseEvent.MOUSE_UP,endDrag);
    function endDrag(event:MouseEvent):void {
         handler.stopDrag();
         draging=false;
    function checkingProgress(event:Event):void {
         var procent:Number=handler.x/maxScroll;
         if (draging) {
              Tweener.addTween(photoContainer,{x:(475-procent*(photoContainer.width-thumb_holder.width)),time:1});

  • Can't drag and drop after update

    can't drag and drop after update

    hi Dustin, maybe with a bit more info someone will be able to help with this:
    what Mac OS System version are you using?
    what is it you are 'dragging and dropping'? : Is this drag and drop of text in InDesign? Or are you dragging and dropping from the Mac OS (e.g. a file from a folder) into InDesign?
    If you are referring to drag and drop from OS into InDesign: I'm thinking this 'might' be a Mac OSX issue. If you look over at https://discussions.apple.com/index.jspa there seem to be plenty of issues with drag and drop across different OS versions.
    Next time it stops working whilst you are in InDesign, does it still work in other programs? That is one way of determining if this is caused by InDesign or the operating system. If it is the OS, my guess is that it stops working in other applicaitons as well.
    Hope this helps,
    Cari
    twitter: carijansen
    facebook: carijansen.au

  • Drag and drop to apply color to art.

    Hi All,
    I am designing a panel for Illustrator CS6 that displays colors in a datagrid as follows,
    [Color] [Color_Name]
    I want to be able to apply color to any art by using the drag-n-drop from the panel to the document. Is it possible that I am able to detect the art on which the color was dropped so that I can apply the color?
    Thanks!

    I came upon the NativeDragManager class of the CS Extension. We can use it to drag and drop objects from the panel to the application document. For this we use the ClipBoard and specify the format of the clipboard data. There are quite a few formats, namely, bitmap, text, url, file, etc. However, I couldn't use any of these so that I might drag a color from my panel to the document.
    Here is a code to drag and drop a text from panel to document,
    var clip:Clipboard = new Clipboard();
    clip.setData(ClipboardFormats.TEXT_FORMAT, designsDG.selectedItem.Colors);
    var allowedActions:NativeDragOptions = new NativeDragOptions();
    NativeDragManager.doDrag(designsDG.selectedItem as InteractiveObject, clip);
    Here designsDG is the datagrid containing the text.
    How can I do something similar for a color object?
    Any inputs?

  • How to drag and drop a swing component that can make it behave like Visio.

    1) How to make a JComponent drag and drop that behave like visio? I understand it's possible to drag and drop a text or image, but no idea on how to do that on JComponent. 2) After the JComponent is dragged and dropped, how to make the JComponent to be able to resize by the user using mouse 3) The area that the JComponent dropped should it be GrassPane, LayerPane, or ContentPane?

    I see where you're going. I'm drawn to Thunderbird because it puts open emails in separate tabs, which makes finding a particular open message easier than searching the task bar for an open outlook message. I do see your point that tab happy programmers, probably too young to remember how cool we thought drag and drop was when it first came out, don't think much of it. As with a lot of software, each programmer has a very limited view of how it their program should be used vs how it is actually used in the wild.
    People work in different ways. When I schedule an appointment with a client, this is often preceded by a series of emails related to whatever the client wants to discuss. I drag and drop those messages into the appointment window so that on the date of the appointment, I have a nice neat summary of the issues right there in the appointment window. I could use workarounds (save email and then attach to the appointment), but that's like a trip back to Windows 3.0 and it's, if I'm not mistaken, 30+ years later. I guess I'll continue to use Tbird for email and outlook for calendar, not my preferred solution, I'd like to flip MS the bird and cut all ties to outlook, and was hoping Tbird was the solution. Not yet, and perhaps not ever, based on your thoughts.

  • Mackbook can't drag and drop after working in indesign CC for a while.

    This has been going on for a while.  I am working in Indesign then all of the sudden all my drag and drop cappabilities are gone.  i have to restart my computer to fix the problem and being that the start up times for the cc software is outragous,  this sucks for my workflow.  I have seen Adobe techs say that there isn't a difference in the backend between 6 and cc for the whole suite but seeing is believing and I don't make things up.

    hi Dustin, maybe with a bit more info someone will be able to help with this:
    what Mac OS System version are you using?
    what is it you are 'dragging and dropping'? : Is this drag and drop of text in InDesign? Or are you dragging and dropping from the Mac OS (e.g. a file from a folder) into InDesign?
    If you are referring to drag and drop from OS into InDesign: I'm thinking this 'might' be a Mac OSX issue. If you look over at https://discussions.apple.com/index.jspa there seem to be plenty of issues with drag and drop across different OS versions.
    Next time it stops working whilst you are in InDesign, does it still work in other programs? That is one way of determining if this is caused by InDesign or the operating system. If it is the OS, my guess is that it stops working in other applicaitons as well.
    Hope this helps,
    Cari
    twitter: carijansen
    facebook: carijansen.au

  • Downloads dragged and dropped from Firefox download window into Outlook e-mail show as file location text.

    I have a user who normally can drag files from Firefox's Download window into an e-mail in Outlook and it creates an attachment of that file in the e-mail. However, lately, the dragged .pdf or whatever file only shows up as a text file location like:
    \\file:%Downloads%\randomfile.pdf
    It's not a link either, it's just the text.
    I've tried doing a repair of Outlook.
    I've uninstalled and reinstalled Firefox 19.
    I've tested dragging items from the desktop to the e-mail and it works fine.
    I can't drag and drop from the Downloads window to the desktop.
    I just wanted to add this user is using Windows XP Pro.

    I can confirm that this is an issue with the newest release of Firefox. I just upgraded my Firefox, which was previously 18.02 to 19.0 and now I'm getting the same error. It's a bug.

  • Problem using text boxes as the "image" to drag and drop over audio file

    I have been adding audio files to my page in iWeb (previous version, not '08), but I am having a problem giving them titles.
    When you first drag a file from iTunes into iWeb, it provides a space for you to drag and drop a picture. The online iWeb guide also says that you can drag a text box there instead of a picture.
    I created a text box with the text I would like to drop over the controller. However, it is no longer allowing me to drop the text box there. I used to be able to do this, and I don't know what I'm doing differently now. Any suggestions?
    Thanks!
    -- Will

    foobar2000 with the ipod plugin will allow you to drag/drop FLAC files and when it syncs the ipod, it converts the FLAC files on the fly. MUCH better than dealing with the crappy iTunes interface and having to pre-convert the files. I absolutely loathe iTunes and it just gets worse and worse!

  • How do I create a text style in CC libraries? Every time I drag and drop text into library form Photoshop or illustrator it turns it into a graphic.

    How do I create a text style in CC libraries? Every time I drag and drop text into library form Photoshop or illustrator it turns it into a graphic.
    If I select the text layer and click the text style button in the library it just creates a new text style for Myriad Pro 12pt - I'm not using that anywhere in my document.
    Can anyone help? Seems like a bug to me as I'm trying what the video tutorials are saying.
    Thanks

    I realize AI is an illustration program.
    Do you realize it is an object-based vector-based program? Do you know the difference between raster-based and vector-based content?
    My question seems to be all over the forum but no one has been able to answer other than exporting to these file formats, which make text look awful and of no use....
    And yet everyone else in the world makes proper web images every day using a plethora of programs, including these...go figure.
    Am I missing something?
    Yep. Pretty much.
    Hello Adobe! People use transparency on website logos.
    Hello, cocteau! What you're calling "transparency" is inherent to object-based vector artwork. But web browsers don't support object-based vector artwork, except via file formats like Flash and SVG, or by viewing as a PDF in a plug-in version of Reader. Raster imaging in general only supports "transparency" by either indexing a specific color (i.e.; "don't display this color", as in GIF) or including an alpha channel (i.e.; "blend all the pixels with existing pixels, based on values from this extra channel", as in PNG). It's all in the raster file format you use, cocteau; it has little-to-nothing to do specifically with Adobe software. Such things are among the most basic matters understood by someone doing web design.
    When I export an eps from .ai file, and open the eps in photoshop,...I save as a gif for the web, it goes back to the original problem...creates jagged text. I"m giving up on this garbage...Thanks a lot adobe! Lower the price of this software if this is all that can be done.
    Once it leaves Photoshop (or Illustrator, or whatever) as a non-proprietary raster image format, it's all about what the format can do re "transparency". You can do this stuff with most any graphics program. You should read about basic web design and the differences between raster and vector content, rather than rant.
    JET

  • A drag and drop game with dynamic text response

    Hi,
    I am a teacher and my school has recently upgraded to Adobe Design Premium.  Our previous version was about 5 versions out of date.
    I teach A Level which requires students to create an Interactice Multimedia product.
    In the previous 6 years, I have taught students how to create simple drag and drop game with dynamic text responses.
    Since the upgrade to Actionscript 3.0 the dynamic text response has ceased working.
    When creating the game from scratch, I need to move to Actionscript 2.0 as 3.0 does not allow me to add actionscript to objects - I know and am sure that this is a better way of doing things, but I would prefer to keep working the way I am used to.
    I use a switch case statement which I have copied below to make the drag and drop work.  The objects I apply the code to work in that they can be dragged, however, my dynamic text box with a variable name of "answer" is no longer displaying the response when an answer is left on a dropzone (rectangle converted to a symbol and given an instance name).
    on(press) {
    startdrag(this);
    on(release) {
    stopdrag();
    switch(this._droptarget) {
      case "/dropzoneB":
       _root.answer="Well done";
       break;
      case "/dropzoneA":
      case "/dropzoneC":
       _root.answer="Hopeless";
       break;
      default:
       _root.answer="";
       break;
    Any help would be much apeciated.
    Thanks
    Adrian

    To drag in as3
    blie_btn is the instance of the object drawin on the stage. In AS3 you have to assign a even listener, in this case MOUSE_DOWN, and MOUSE_UP, as we want the drag to stop if the mouse is not clicked. Then we fire the functions, and tell the object to start drag.
    // Register mouse event functions
    blue_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    blue_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    // Define a mouse down handler (user is dragging)
    function mouseDownHandler(evt:MouseEvent):void {
         var object = evt.target;
         // we should limit dragging to the area inside the canvas
         object.startDrag();
    function mouseUpHandler(evt:MouseEvent):void {
         var obj = evt.target;
              obj.stopDrag();
    if you want to make the text do what you want then something like this might work.
    In the function, you could add a text box onto the stage, give it a instance of something like outputText
    and then:
    outputText = ("Bla Bla Bla");
    (^Not sure if this will work exactly^)
    PS. I am currently a A-level student

  • Drag and Drop Text in FrameMaker 10

    I just installed TCS 3 with Frame 10.  Prior to this release I could triple-click a paragraph and select the following (or previous) paragraphs by dragging the mouse.  Now in Frame 10 after I triple-click, Frame thinks that I want to drag and drop text rather than simply selecting text.  It only selects the one word on which the mouse cursor rests and insists on prompting me to drag the text somewhere.  If I triple-click and release the mouse button, then the whole para is selected, but I cannot select any more text because I have already released the mouse.
    How do I turn off the drag and drop text feature?  I'm finding this "enhancement" frustrating at best.

    AFAIK, the drag'n drop facility is hardwired into the code, so you can't change the behaviour. However, if you've made a paragraph selection using a triple-click, you can select additiona paragraphs by holding down the shift key and single-clicking at the point that you wish your selection to extend to.

Maybe you are looking for

  • GLIBC_2.0 not defined in file libc.so.6

    I am attempting to install the patch 11I.ATG.PF.H Detla 7, got errors at the end with 7 reports not compiling successfully. I went to recompile one report and got the following error message Error Message: /finora/product/10222/8.0.6/bin/rwcon60: rel

  • Polymorphic read not working with an AI-100, when the VI is embedded on the controller?

    I have a cFP-2100 and I am trying to set up a read VI for a cFP-AI-100.  I have built a VI and run it on my computer and deployed to the target and in both cases the code runs fine.  However, when I build a source distribution, load everything into t

  • How long should my Curve 8530 Smartphone hold a charge?/What's w/the tiny keyboard keys?

    Hi, I love Bberries--ever since I got to use one at work; I don't recall that model but it was about 7 or so years ago.  I never had to charge it so much; and the keys were much larger. I am very disappointed. Any input greatly appreciated.  I am pay

  • Heap Allocation Parameters

    In previous Java versions, -mx was used to set the maximum heap size. As we know, the new -Xmx parameter replaced it. What would occur if -mx was passed to the newer versions of Java? We are debugging an issue where -mx was passed to a newer java pro

  • Splitting of Tables - Recommended?

    Hi All, Request SMEs in the forum for their time in getting an answer to the below query. I apologize if it sounds too basic. As you can imagine, Database is not my core competency :) 1. I have one Table with around 150 columns. The number of records