Constraining drag movements

I've extended Flex TabBar and have added drag and drop
functionality. I want to restrict the dragging to within the
TabBar, either by not letting the mouse move outside the TabBar or
when the mouse moves outside the drag icon stays within the bar.
Eg, if (y < 0) y = 0.. Is this possible in Flex? The only
examples I can find are for Flash using startDrag. I've tried
handling the mouse move event, but it doesn't seem to fire if the
mouse is moved slowly!
Thanks.

"angie_mc" <[email protected]> wrote in
message
news:gfrka5$5s8$[email protected]..
> I've extended Flex TabBar and have added drag and drop
functionality. I
> want to
> restrict the dragging to within the TabBar, either by
not letting the
> mouse
> move outside the TabBar or when the mouse moves outside
the drag icon
> stays
> within the bar. Eg, if (y < 0) y = 0.. Is this
possible in Flex? The only
> examples I can find are for Flash using startDrag. I've
tried handling the
> mouse move event, but it doesn't seem to fire if the
mouse is moved
> slowly!
supertabbar
http://code.google.com/p/flexlib/wiki/ComponentList

Similar Messages

  • JTable - how to disable the drag / move  for column

    hi there, please give me a hand with this problem,
    i am trying to disable drag / move column in JTable.
    ie.
    ===============================================================
    JTable mainTable = new JTable();
    tableModel recordTable; //this extand AbstractTableModel
    this.mainTable.setModel(this.recordTable);
    ie.
    Product size quantity price
    Shoe 8 200 $120
    Shirt 9 100 $100
    Dress 12 50 $60
    the position of column Product,size,quantity,price, however, if i click on price and drag, i will be able to move the whole lot and place to different position ie. Product,price,size,quantity.
    =======================================================================
    please let me know how can i stop this happening....

    Try something like this:
    mainTable.getTableHeader().setReorderingAllowed(false);

  • How to implement drag&move JLable?

    hi,
    I am new to swing and pardon me if I ask some real simple questions.
    Using swing, i want to be able to drag&move components (like JLable/JTextField)
    in my content pane and then get components' precise postions (in X, Y coordinates, or
    something like that). It is like moving puzzle pieces around.
    PLS note: I want to MOVE the WHOLE component, NOT only the text within the component.
    Does swing support this internally? How can I do that? Any comments/suggestions/sample code
    are truly welcome.
    Thanks a lot.
    JK

    Do the way like DnD text for Label, except you put the entire JLabel component as Transferable data object.
    - The DropTarget will get the component and add it to "parent" ( "parent" is the container component that you like add the draged JLabel component)
    - The DragSource will get the endDrop notification and call its "parent" to delete the JLabel component dragged.
    You must deal with the "parent" container to add/delete the component for this special DnD component.
    There are no default Swing DnD support for it.

  • CMD + Shift constrain drag shortcut buggy in Photoshop CS6 (Mac)

    Since moving to Photoshop CS6 a shortcut I regularly use for switching tool and dragging elements on a page is producing varying results. The CMD + Shift drag is very useful to allow users to drag elements constrained vertically or horizontally on the page. However since CS6 I have noticed it no longer allows me to drag effectively while my cursor is over the elements I want to move. It goes a bit nuts and does different angles instead of the constrain. This problem is intermittent and depending on the elements I am attempting to move will randomly depend on whether it works. This shortcut I have been using for years and has become native to me. So why now is it not working properly ?

    I can reproduce this issue in Bridge CS6. Thanks for reporting!
    Best Regards,
    Bridge QE
    Chun Xia

  • Constrain-Drag in Piano Roll?

    Before I send this one in as a feature-request, I wanted to make sure it wasn't an already-implemented feature which I just hadn't figured out yet:
    When dragging a selection in the Piano Roll (aka Matrix) view, is there any way (presumably via a modifier key) to restrict the move to ONLY vertical (or ONLY horizontal)?
    In many apps, this happens when you Shift-Drag a selection. In FinalCut, for instance, when you drag a clip from one track to another, holding the Shift key keeps that selection at the exact same spot along the Timeline. This is what I often want when moving a selection in the Piano Roll -- to change the notes in that particular MIDI track, but keep them in the exact same spot relative to all the other tracks.
    Is there any "official" way to do this Logic -- other than simply by eye, which is how I do it now?
    Thanks,
    John Bertram
    Toronto

    Another useful nugget -- thank you.
    I also just discovered that when the "constrain" preference is left on (making it the default), clicking Shift once as you describe turns OFF the vertical/horizontal constraint just for that one particular move.
    Very cool!
    John Bertram
    Toronto

  • Can't drag movies into iPod from iTunes

    Hi,
    I had a problem a while back importing movies that I had compressed (using Handbrake) into iTunes. Once I updated/reinstalled the iPod software it was fine.
    Last night I did the same with a couple of episodes of 24- both imported and will play in iTunes but only one can be transferred to my iPod. It says that "This movie cannot be played on an iPod" but the formats of the 2 shows were identical.
    This is obviously for my own use so I'm hoping I'm doing nothing illegal.
    Any ideas?

    Ah. Just updated iPod again and movie dragged in fine.
    Odd how it should work for one and not the other.
    I guess that could a "bug fix" that the update referred to?

  • Can't drag movies into iTunes v8

    or should I rather say, I can drag 'em, but the do not land there.
    When dragging a .avi-movie in Vista, the thumbnail is shown, but the LIBRARY tab does not highlight, when dragging the movie over it (as it is, when dragging an MP3 there) Dropping the file subsequently does nothing. The iPod manual says iTunes supports all files supported in Quicktime, and the file in question plays fine in Quicktime...
    Any idea would be appreciated.

    Ah. Just updated iPod again and movie dragged in fine.
    Odd how it should work for one and not the other.
    I guess that could a "bug fix" that the update referred to?

  • I can't drag .mov files into an iMessage as I could earlier

    Used to, I could drag a movie file into iMessage and send it to my friends quite easily. It was the most convenient way to send content and raw footage to schoolmates for projects and what not, but now when I do this it doesn't add any footage, but instead a blank line?  I really need to be able to send videos this way as my class almost requires us to share content.

    I've seen where you've helped a lot of people and hopefully you can help me as I'm stumped. I have a Canon Vixia HFS200 and having trouble getting some movie clips to import from SD card. In the past, if a 'still' pic is taken on the same card, iMovie won't recognize anything as being importable. If I deleted the photos, I was able to import without a problem but this time, there are no stills on the card but still doesn't recognize anything importable, even though there are 140 or so .MTS files.
    I've tried a conversion software that I was able to view them but had the company logo over the top. I wasn't sure if there was a way to manually or 'force' them to import? Appreciate any suggestions.

  • Can't drag .mov file to aut play box.

    When I import a quick time file movie I can't drag into the auto start box so that the DVD can just play when inserted. I get no error because the video won't even drag into the auto start box. What is causing this? I'm on a deadline and need to burn a DVD to hand out tomorrow. Thanks.

    Sometimes permissions and preferences can get corrupted. Whenever iDVD starts acting funny, a common maintenance procedure is to do the following: Delete preferences by closing iDVD and trashing the file com.apple.iDVD.plist found in User (the House icon)/Library/Preferences. Then do a permissions repair using the Utilities/Disk Utility App on your Mac. Open the Disk Utilities window and select the Mac hard drive icon at the top of the side pane at the left. Then click on the Repair Permissions button. When you have repaired permissions and deleted preferences, restart your computer and launch iDVD. iDVD will replace the .plist file that you deleted. Be sure also that you have sufficient free disk space on your hard drive for iDVD to function correctly. 25GB often is recommended by users of this forum. After doing all of the above, relaunch iDVD and see whether you still have the problem.
    If you still have the problem, then perhaps your Quicktime.MOV movie is in a format that is not compatible with iMovie. The .mov designation can contain any number of different codecs. See if you can import the movie by dragging it into the edge of your iDVD menu window (not into a drop zone). If it won't import, try opening a new iDVD project and try to import it it there. If still unsuccessful, try copying your movie and converting it to DV stream by using the free download, Streamclip. Drag it into the Streamclip window and then File > Export to DV.
    Good luck with this.

  • Cannot drag MOV videos into timeline

    Hi there,
    So i have weird problem now with MOV files. After dragging into timeline the second one, different from the first one, I can't drag any more files. Including the first one, or other non-mov files. If I drag just the first one i can repeat it many times. In this case I can continue with other types. But then I cant add any movs. There is only audio to be moved.
    What I can do is open it new sequence, and then use this single file sequence on primary timeline.
    This is very annoying.
    Please help.
    Michal

    Hmm, am not sure about codec; footage was shoot with iPhone 5. I can check it when I'm at computer.
    QuickTime have been not updated recently I suppose.
    One more fact I found last night - I can drag those files from new sequence into main timeline. Another words - I need to create new sequence for each single file, then I can use many in main timeline.

  • Why Can't I get Idvd window up to drag movie from iMovie. OS 10.8.5  idvd is from iLife '11

    Have just bought update iLife 11 and installed idvd.  When I open it, it just spins 'load themes'. I dont want to use the themes - I just want the Idvd window to come up so I can drag the movie into it, loop it and burn the dvd.
    Thannks for your help - I don't know much about this stuff!

    Themes must be installed and used for iDVD to work. It's the nature of the beast.
    Did you do a custom install?  Check in your HD/Library/Application Support folder to see if there's an iDVD folder.  If it's not there check in your Home/LIbrary/Applications Support folder.  This folder is invislbe since Lion so you'll need to do the following:
    NOTE: In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible in Lion or Mt. Lion enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    For Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Optionsmenu to bring the this window:
    I suggest you move the application to the Trash bin in the Dock and reinstall iDVD from the iLife 11 disk under the Customize option or use the demo version of Pacifist and do a customize install of iDVD which will include the themes.
    OT

  • CS6 Problem on Windows Dragging/move

    I saw this problem a few day before and this is something that need to pay attention, the problem started when I had a multiple tab to do
    a work, then I put some tabs windows and drag to the left to make my drawing more easier base on the reference on the left
    and suddenly the tabs goes crazy and always started to move up
    I've found the solution by autohide the taskbar, but it really not confortable because taskbar are usefull at the sametime

    Hi All,
    Its a known issue and we are working on this.
    Please refer this document for the workaround : http://helpx.adobe.com/photoshop/kb/images-pop-menus-moved.html
    Thanks,
    Baljeet

  • Dragging movie clip from Event pane to Project pane

    When I drag a movie clip from Event to Project the top part of the clip is cut off. On body pictures I am losing people's heads! The movie clips play perfectly in the Event panel, so I know they were imported correctly.

    There are two things to look at.
    First, what is the aspect ratio of your project, and is it the same as your camera is shooting?
    If your camera is standard (4:3), set your project to 4:3. If your camera is wide-screen (16:9), set your project to 16:9. You can do this in FILE/PROJECT PROPERTIES.
    Second, if your project contains a mix of 16:9 and 4:3, that is OK. You just pick the aspect ratio that you prefer. Then on each clip, go into the Rotate, Crop, Ken Burns Tool and select FIT or CROP.
    FIT will letterbox (black bars). CROP will cut off the top and bottom. You can decide which you prefer.

  • Custom Chrome with Drag/Move Support

    In a regular AIR file, if you click and drag on the chrome, you can move the whole application around the screen. I want to create my own custom look with the close, maximize, buttons, etc., but when I do this, I am not able to move the application around on the screen.  How do I do this? Can you provide me with an example?
    Thank you,
    JF

    You didn't specify JavaScript or Flash/Flex so I'll provide a JavaScript example. The syntax is much the same for Flash/Flex:
    http://www.andymatthews.net/read/2009/06/21/jQuery-and-AIR:-Transparent-AIR-applications-w ith-custom-chrome

  • Drag movie clip with dynamic text box inside it?

    Hi team, I can drag a movieclip with static text inside it, but when I change the text to dynamic, I get a Property Startdrag not found on Flash.text.textfield and there is no default value.. Any help?
    Cheers
    sub

    assign the mouseChildren property of your movieclip to false.

Maybe you are looking for