Problem winth drag and selection on textfields (Possible BUG?)

Hello
I've been trying to eneble draging of images and selections on RichTextEditor to make them more interactive. I've been successfull at doing this and it wasn´t that hard to make once you learn the right functions on textfields. But, my current problem is that when I start a drag operation from a text field and then I make the drop on the same textField some mouse events seem not to be reaching the selection control of the textfield.
What happens is that once the drag operation is over, the textfield behaves as if the mouse is still pressed, marking a text selection. This behavior tends to finish once you click the mouse.
I was wondering if this is a bug on the TextField or if I have to have some extra considerations when draging on a text field.
Thanks.
Sebastian

OK it seems that it's actually a bug, but I was able to narrow it down a bit.
When you change the state of the textfield from selectable = true to selectable = false while a selection n the textfield is been made, then when you set selectable back to true, the textfield continue to make a selection even though the mouse is no longer down. This is more likely a problem with the textField form flash than a problem with flex.

Similar Messages

  • Can't drag and select music in iTunes 10.7!!

    I'm trying to select multiple groups of songs JUST by using the trackpad. I am only able to do this when using the view as seen below, which is no help when attempting to drag and select specific multiples of songs listed under the "all songs" and "all songs with album pics" views.
    What if I want to drag a few songs from the end of an album and a few more from the beginning of the album below? I am forced to hold command and select each song one by one. If I attempt to hold down the trackpad and select multiples like we've always been able to do, the result is illustrated below.
    I do NOT have a wacom tablet (i wish) and I have repaired permissions, restarted the computer, played around with trackpad options, universal access. I've searched through these boards for what seems like hours. Someone help!

    Thanks David - that wasn't it, but I have managed to find a fix after trawling through various forums - I logged out then logged back in. Simple as that! Sadly I'm still none the wiser as to what caused the problem in the first place, so don't know if or when it'll reoccur. I also found it was affecting iPhoto after I first posted, so not an iTunes specific problem obviously. Thanks to all those who posted fixes in various forums, though some looked a little too scary for me to try out...

  • Problem with Drag and drop in panel dashboard

    Hi
    I am having problem with drag and drop in panel dashboard.
    I will explain what i am doing.
    I am using Oracle three column template in First region i am having a table that showing all customer.
    I drag one record from my table and drop it on customer info (CIF) page on second region it is working fine.
    my CIF page has a dashboard with 6 panel box. i am showing 6 different jsff in 6 panel box.
    I put drop target in each jsff
    <af:dropTarget dropListener="#{backingBeanScope.backing_customerinformation.handleItemDrop}"
    actions="COPY">
    <af:dataFlavor flavorClass="org.apache.myfaces.trinidad.model.RowKeySet"
    discriminant="CustomerSearchDnD"/>
    </af:dropTarget>
    when i put drop target my panel boxes moves only when i drag it to another panel box header not entire part of panel box.
    if i remove the drop target then panel box move normally as the example given on: [http://adfui.us.oracle.com:7778/faces-trunk/faces/visualDesigns/dashboard.jspx?_afrLoop=2021391022520156&_afrWindowMode=0&_afrWindowId=null] but in taht case i am not able to drag and drop my data

    You must be an Oracle employee as you're referring to a component in the upcoming JDeveloper version which has yet been released to the general public. Oracle employee's are, I believe, directed to post on internal Oracle forums.
    CM.

  • Problem with focus and selecting text in jtextfield

    I have problem with jtexfield. I know that solution will be very simple but I can't figure it out.
    This is simplified version of situation:
    I have a jframe, jtextfield and jbutton. User can put numbers (0-10000) separated with commas to textfield and save those numbers by pressing jbutton.
    When jbutton is pressed I have a validator which checks that jtextfield contains only numbers and commas. If validator sees that there are invalid characters, a messagebox is launched which tells to user whats wrong.
    Now comes the tricky part.
    When user presses ok from messagebox, jtextfield should select the character which validator said was invalid so that user can replace it by pressing a number or comma.
    I have the invalid character, but how can you get the focus to jtextfield and select only the character which was invalid?
    I tried requestFocus(), but it selected whole text in jtextfield and after that command I couldn't set selected text. I tried with commands setSelectionStart(int), setSelectionEnd(int) and select(int,int).
    Then I tried to use Caret and select text with that. It selected the character I wanted, but the focus wasn't really there because it didn't have keyFocus (or something like that).
    Is there a simple way of doing this?

    textField.requestFocusInWindow();
    textField.select(...);The above should work, although read the API on the select(...) method for the newer recommended approach on how to do selection.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • Drag and drop no longer possible in excell 2007 on vista

    Hi,
    we just migrated to Vista with office 2007. So we are now on GUI 7.10 Patch 4; BI add-on's SP2 Patch 1.
    Is it normal that we no longer can drag and drop (add characteristic; swap columns;...) or is there something wrong?
    Ciao!
    Joke

    Hi Joke,
    yes its the problem with vista and even you cant drag and drop the objects to restrict in query designer also.the higher patch version is not supported in vista.so if possible contact SAP people.they will give you vista supported patch version.
    i faced the same problem and i switched back to xp now.
    Regards,
    ashok.

  • Problem with drag and drop on Mac

    Hi, when I run my AIR application on Windows, I'm able to do
    the drag and drop.
    But when I run the application on Mac, it gave me an
    allocation error: unable to allocate region of size <random
    number> after I drag and drop thrice.
    Anybody knows what's the reason?

    Pages does not support the Apple font used for color emoji, so that behavior is normal.
    With what app are you reading the yahoo mail?  There is really no guarantee than any other email service will show the special Apple font involved.
    You should have no problem putting emoji directly into Mail or Text edit via drag drop from the Character Viewer as shown below.
    You should also be able to upload graphics here easily by clicking on the camera icon.  My email is tom at bluesky dot org.

  • Problem with Drag and drop manager

    I am noticing that the sample provided at
    http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_7.html is not working when tried on any version of FireFox browser on a Mac OS version 10.6.3.
    So my understanding is that there seems to be some problem with the drag and drop manager in Flex when used on Firefox on a Mac OS version 10.6.3.
    It will be very helpful if you can provide any work around for this issue. We want to implement the drag and drop feature in a website that we are building for one of our clients.

    You must be an Oracle employee as you're referring to a component in the upcoming JDeveloper version which has yet been released to the general public. Oracle employee's are, I believe, directed to post on internal Oracle forums.
    CM.

  • Problem with drag and drop

    Hi! I'm having a problem with getting this code working, basically I want to drag and drop two things onto another the things dissapear then it moves onto a new page, the first item works properly but then the second item wont dissapear and remains stuck to the cursor. Heres the code I'd be greatful of any help.
    import flash.events.MouseEvent;
    import fl.motion.MotionEvent;
    stop();
    Back6_btn.addEventListener(MouseEvent.CLICK, onBack6Click)
    function onBack6Click(event:MouseEvent):void{
        gotoAndPlay("Bedroom2");
        Forward6_btn.addEventListener(MouseEvent.CLICK, onForward6Click)
    function onForward6Click(event:MouseEvent):void{
        gotoAndPlay('Brother bit');
    var inGran:Number=0;
    Gin.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    Tonic.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    function dragOn(event:MouseEvent):void {
        event.target.startDrag(false);
        stage.addEventListener(MouseEvent.MOUSE_UP, dragOff);
    function dragOff(event:MouseEvent):void {
        event.target.stopDrag();
        if (event.target.dropTarget!=null&&event.target.dropTarget.parent==Gran) {
            event.target.visible=false;
            inGran++;
        stage.removeEventListener(MouseEvent.MOUSE_UP, dragOff);
    function checkPage(e:Event):void {
        if (inGran==2) {
            gotoAndPlay("Bedroom1");

    you have some mismatched brackets, change your target properties to currentTarget (and i'm not sure you're dropping onto the correct target) but, try:
    import flash.events.MouseEvent;
    import fl.motion.MotionEvent;
    stop();
    Back6_btn.addEventListener(MouseEvent.CLICK, onBack6Click)
    function onBack6Click(event:MouseEvent):void{
        gotoAndPlay("Bedroom2");
        Forward6_btn.addEventListener(MouseEvent.CLICK, onForward6Click)
    function onForward6Click(event:MouseEvent):void{
        gotoAndPlay('Brother bit');
    var inGran:Number=0;
    Gin.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    Tonic.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    function dragOn(event:MouseEvent):void {
    event.currentTarget.parent.addChild(event.currentTarget);
        event.target.startDrag(false);
        stage.addEventListener(MouseEvent.MOUSE_UP, dragOff);
    function dragOff(event:MouseEvent):void {
        event.target.stopDrag();
        if (event.target.dropTarget!=null&&event.target.dropTarget.parent==Gran) {
            event.target.visible=false;
            inGran++;
        stage.removeEventListener(MouseEvent.MOUSE_UP, dragOff);
    function checkPage(e:Event):void {
        if (inGran==2) {
            gotoAndPlay("Bedroom1");

  • Problem with Drag and Drop on a JTree

    I would like to have a JTree with drag and drop support with the following characteristics:
    1) The JTree holds near 100 different kinds of TreeNodes
    2) The drag and drop operation uses TreeNodes as Transferable
    3) The drop operation adds a new TreeNode child on the TreeNode that accepts the drop
    4) There are some rules for a TreeNode to accept the drops by example:
         Type1 can accept Type2
         Type2 can accept Type3
         All other combinations are not allowed
    I am using the following classes to support this behavior
    JTree
    DataFlavor
    DragSourceListener
    DropTarget
    DropTargeListener
    DragSource
    GestureListener
    Transferable
    The question is:
    How to change the cursor shape when the mouse is over a node to show graphically the drop accepting rules.?
    I can not use the the following methods to change the cursor-shape
    DropTargetListener.dragEnter
    And
    DropTargetListener.dragOver
    Case they receive a DropTargetDragEvent witch don�t knows nothing about the TreeNode type dragged.
    I can not create a TreeNode on the method GestureListener.dragGestureRecognized cause this could not work when dragging between two diffents JVM.

    Hello,
    You might want to search this forum for this class : DNDTree.java. It pretty much does the job.

  • Drag and drop file to desktop bug

    I have a new fusion drive 27" iMac with Thunderbolt Cinema Display.
    When I drag a file, like an attachment from mail, onto the desktop it does not drop the file where the cursor indicates it will.
    The same thing when dragging from the download folder or a finder window.
    The file is randomly paced on the main iMac desktop in no particluar order, and you can't precisely drop a file where you want.
    File can be dropped behind open windows, making them hard to find.
    If the Thunderbolt display is unplugged, the issue goes away and drag and drop is precise.
    This used to happen on my old iMac aswell, but i put it down to a bug with my system, however, it also happened out-of-the-box on the new fusion iMac before I installed any software or files, as I was specifically testing this - it's very annoying and disruptive to workflow.
    Something with OSX doesn't like the external monitor when it comes to drag and drop to desktop.

    The card reader is apparently stuck in write-locked mode. I don't generally advise do-it-yourself hardware repair, but one ASC poster managed to fix this problem. I haven't tried the fix myself and I can't offer any guidance beyond what's in that discussion. If you cause damage, don't expect your warranty to cover it. I suggest you instead make a "Genius" appointment at an Apple Store.

  • Problem with align and Selection Tool.

    This is a weird problem which I cannot explain at all.
    I am using AI CS3 with Windows XP.
    I am having this completely random problem with the selection tool and align pallette I cannot explain.
    I have a group of objects and groups of objects I am trying to use the align pallette on.
    Sometimes when I select all of the items I want to align, either by shift-clicking each one, or by drag-selecting them I am getting a random behavior where sometimes the align button will move all of the objects COMPLETELY off of the artboard, all the way to the edge of the working area and beyond into the grey area you cannot see.
    Normally, this would be caused by a stray point somewhere way off-screen or some other cleanup oriented thing on my part. However in this case, the behavior is random and does not happen every time I hit the align button.
    Sometimes it takes items within my grouped objects (lines of text) and moves THEM completely off the work area, leaving the other items in the groups in place. Sometimes the bounding box when I drag-select the items will stretch extremely far off of the work area.
    I have even dragged the extra large bounding box, bringing the edge that was once way off screen onto the work area, in outline view, in hopes of finding the stray point or object that could be causing this. However NOTHING appears that can be causing the align to throw all of my objects off-screen.
    The random nature of this behavior and the way it sometimes affects my text objects inside of groups leads me to believe it is a program bug and nothing I am doing.
    The behavior takes place regardless if I select by dragging or by shift-clicking, and is happening in more than one file, also randomly.
    Also, choosing "align to art board" vs. "align to crop area" does nothing to change this behavior.
    It is quite irritating. I've been using illustrator since v.88 so I have enough experience to know this is not normal.
    Any help with this one would be greatly appreciated.

    When this behaviour occurs, are perhaps guides included in your selection?

  • Problems highlight, drag and drop text in Microsoft Word from Adobe Free

    We work with two screens (monitors), and is open on a document opened from the Adobe (free) (extension. PDF) and other Word (Microsoft). In previous versions of Adobe, you could highlight a word or text and just drag them to the Word, without the need to "copy" and "paste". In this version of the Adobe XI, there is the same possibility, since we're not getting to do as before?

    Hi Rave:
    Many thanks for the tip and information. Really, after that there was updated in our system of electronic procedural actions (I work in Federal Court in the state of Santa Catarina in Brazil) stopped working the highlight text and drag it to the document from Microsoft Word 2007. Anyway, I believe that the problem is not with Adobe Reader, but our system has been updated.
    Greetings.
    Paulo Dozoretz

  • Problem with Drag and Drop (TransferHandler)

    I have a stern problem with the java.swing.TransferHandler. It shows a design weakness, and because of a tiny glitch I am currently not able to finish my task.
    The design weakness is that method importData(JComponent comp, Transferable t) does not pass the dropAction information in the parameter list. The application case in question is a transfer from a JTree to a JTree (might likewise be to/from a JList). The transfer semantics imply that partial success is possible (there are item identity and uniqueness considerations to handle). - I can deal with all detail demands except that I cannot discriminate between COPY and MOVE taking place in the transfer. Also I don't find any possibility to retrieve this information by subclassing TranferHandler or from any other element there.
    Is there any expert who knows a solution?

    I came up with two solutions. One is I modified my application requirements for the time being so the problem disappears. :)
    Second, I had the idea to create a subclass of javax.swing.TransferHandler and copy/override as many methods as necessary to allow for an extra method public boolean importData(JComponent comp, Transferable t, int action) and derive the extra value from a modified method DropHandler.drop(DropTargetDropEvent e) in a copy of the DropHandler.
    Whether this really works, I have not tested.
    As for your answer, Andre_Uhres, I don't find it elaborate enough that it leads to a solution, hence no stars rewarded. You leave it open how to get hold of the DropTarget events which are dealt with privately in javax.swing.TransferHandler.
    I consider the subject closed for my purposes. Thanks very much for your reply!

  • Problem with drag and drop application windows from one workspace to another

    I work with multiple desktops (Spaces) and before I freely dragged the mouse a window from one space to another, now the mouse rests on the edge of space and the application does not become the next space. What am I doing wrong or where this option is set?

    After the publication of the problem has disappeared, the window is dragged. Miracle! )

  • I have to double click for clicking, and cannot drag and select.

    Hello
    Yesterday my mouse went out of batteries, and i put a fresh new ones in (have tried a lot new), nothing works.
    After that happened my mouse has been wierd.
    - I have to doubleclick to click.
    - When i select a text, it removes what i have selected after 1-2 seconds, like i click on the mouse again.
    - I have to doubleclick on all elements to click them.
    It's so annoying, and i don't know what to do.
    - I have upgraded the newest LION OS - didn't work.
    - I tried remove all startup programs - didn't work.
    - I tried removing unierval access from other devices - didn't work.
    - I tried restarting my computer - didnt work
    - I tried scanning my computer via. CCleaner - didn't work.
    What to do??

    Check your settings in System Preferences > Mouse

Maybe you are looking for

  • Sharing internet between PowerBook and MacBook

    I have been trying to set up internet sharing from my old PowerBook G4 on Tiger to my new MacBook on Panther using Firewire. I have followed advice I've found on this but so far nothing has worked. I have turned on sharing in Network Preferences - Sh

  • Can I use an apple 4 from sprint that I received to replace my droid on my plan?

    I currently have adroid on my plan but my sister gave me her apple 4 from sprint as she updated hers....can I replace her phone on my plan?

  • Headphone jack light

    occaisionaly a red light comes from my headphone jack and no sound will come from the speakers. the longer i stay on my computer the less the red light comes on and stops whatever it is i'm listening to at the time. i assume it's a setting problem, b

  • Cannot Access Shortcut Menu for Adding Input/Output in Formula Node

    This is a wierd problem. I cannot access the shortcut menu in formula node. I right click the border, nothing happens. Anyone run into this before? Is there any other way to add inputs and outputs? I am running Vision Builder AI and want to use a for

  • Can't play music in icloud

    I somehow ended up with my extensive libary or music on Icloud. Now I can'r seem to access it anymore. Says "file not found" then asks to locate biut doesn't!!! Frustrated... Music on Ipad plays fine but not on Mac???