Listbox drag multiple items out
Want to drag multiple items out of a listbox. Is this possible?
George Zou
http://webspace.webring.com/people/og/gtoolbox
Solved!
Go to Solution.
zou wrote:
Want to drag multiple items out of a listbox. Is this possible?
Whereto?
In the same VI?
Register for the 'drop' event on a control, the drag and drop data will have info, here's a sample VI. make sure you allow dragging from the Listbox.
The help is very specific on the actual data type in the info. However it's hard to understand:
LV_LISTBOX_ITEMS
Array of a cluster that contains an array of
strings in the item you are dragging (in order from left to right) and
an integer that represents the glyph index associated with the item from
which you are dragging data.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Similar Messages
-
Why doesn't iPhoto allow dragging multiple items?
The last few versions of iPhoto (maybe since installing Mavericks) do not have to ability to drag and drop multiple items. I can highlight multiple items, but if I want to drag photos into folders to organize them, I have to drag them ONE AT A TIME! Needless to say, this is excruciating! Is this change intentional? Or am I the only one with this problem?
DaveFixed! I ran across this suggestion in another discussion:
Mary Kay NeidhamerAug 19, 2014 6:10 AM
Re: I cannot drag photos from iPhoto to desktop with iMac and Mavericks OSin response to dianeoforegon
I finally was able to solve my problem. I tried what Linc Davis suggested and that didn't help. I finally found an article athttp://www.cnet.com/how-to/how-to-rebuild-a-user-account-in-os-x/ I was able to create the user account and that solved my problem.
Rebulding my user account per the instructions fully restored the ability to drag multiple items in iPhoto. Thanks to Mary for her post, and thanks to OT for the suggestion to try a different account which pointed me in the right direction. -
Hello,
After figuring out how drag and drop works, I came across a problem. When you click and hold on the table, and drag it down, it doesnt select more items anymore, it just drags the item at the place where you clicked the table. This is probably because dragGestureRecognized starts the drag. Is there a workaround for this problem?
ThanksDid you consider asking this in the Swing section of this forum? You're more likely to get quick help there.
-
Can't drag items out of sidebar - they jump back into it!
Can't drag items out of sidebar - they jump back into it!
Hold down the COMMAND key then quickly drag the item out of the sidebar.
-
How do i drag multiple files and move to a folder
I just purchased an IMAC and would like to transfer all of my photos from my old Dell laptop to my IMAC. I am using a USB Flash Drive and now I need to know how to drag multiple items and move the the pictures file? it will only let me move one at a time and this will take forever! I have the magic mouse. I have figured out how to choose/highlight multiple photos but i cannot figure out how to drag them over to the pictures file.
If you're not used to spring-loaded folders, it may be helpful to open a second Finder window (⌘N) and navigate that to the target folder, so you can just drop them straight in.
-
Selecting multiple items in a listbox
Is it possible to select multiple items in a listbox and insert them into an array. Currently, to get around not knowing if this is possible, I have two listboxes. One has items available and the other has items you want to use. I can either double click or press an add/remove button to move items between the two listboxes. The problem there is that when I move an item from one to the other it puts it at the end of the list. I want to keep the lists in order by channel. My items structure is as follows: "'channel number' 'Channel name'" ie "1 Date\Time"
I can sort this list but it sorts by the first character. If I have channels 1-30. It sorts to 1,11,12,13,14,...,3,30. I want 1,2,3,...,30 I would prefer to select multiple items in the listbox but if I can't, how can I do a better sort with my current method of two listboxes.
Thanks,
AJLHi together,
Since there is no multiple selection in Enumlistbox in SUD dialog, i wanted to use a table.
But i couldnt get the table to show the values from a user variable definition file (dynamic enumeration list). I fail to assign one column of the table to that user variable.
Below i attach the corresponding files:
where could be the problem?
And i was looking through DIAdem help file to look for information, how to define different types of user variables (for example vectors) but i couldnt find enough information. Do you have any document or examples where i can see the defining and usage of different type variables in different controls in SUD dialogs ?
thanks in advance
kaan
Attachments:
dynamic_enumeration_for_table.zip 2 KB -
I'm working on an application where I need multiple item DnD between JTrees and JTables. I'm using Java 1.4.1
I have the basics of multiple item DnD working, by creating Transferable classes that contain a collection of items.
The problem I have is when I drag a multiple selection within a JTree (i.e. DragSource and DropTarget are the same) then my call to event.getCurrentDataFlavors() in my dragOver(DropTargetDragEvent event) method is not returning any data flavours unless I drag over to another JTree. If I now drag back over to the source JTree (so that DragSource and DropTarget are again the same) as if by magic I now get DataFlavours whilst dragging over the source container.
This is driving me nuts! :-)
Has anybody else seen this and do they have a solution?I have the same problem here.
When I try to perform drag and drop in a JTree (DragSource and DropTarget are the same), calling event.getCurrentDataFlavors() in the dragOver(DropTargetDragEvent event) method in the DropTargetListener returns me nothing!!
However, the call of event.getCurrentDataFlavors() in the
drop(DropTargetDropEvent event) does return me the correct
information.
On the doc, the DropTargetDragEvent.getCurrentDataFlavors()
should mimic DropTargetDropEvent.getCurrentDataFlavors().
So, I suppose both functions should work in the same way
properly.
Is there anything wrong with my understanding or is that a bug
of the Java dnd? -
Restrict selecting multiple items across two ListBoxes
Hello,
I'd like to know, how to restrict user from selecting multiple items across two different ListBoxes.
Reason I need this is I want to pass that selected item forward using only one button.
Something like
if Lb_Regular.hasSelected = true then
passfunction(Lb_Regular.SelectedItem)
elseif Lb_Patch.hasSelected = true then
passfunction(Lb_Patch.SelectedItem)
else
Debug.WriteLine("Nothing is selected")
Thanks in advance,
TheCreepySheepHi,
You can try it like this.
Public Class Form1
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
If ActiveControl Is ListBox1 Then
ListBox2.SelectedIndex = -1
End If
End Sub
Private Sub ListBox2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
If ActiveControl Is ListBox2 Then
ListBox1.SelectedIndex = -1
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If ListBox1.SelectedIndex > -1 Then
MessageBox.Show("Listbox1 has item selected - " & ListBox1.SelectedItem.ToString)
ElseIf ListBox2.SelectedIndex > -1 Then
MessageBox.Show("Listbox2 has item selected - " & ListBox2.SelectedItem.ToString)
Else
MessageBox.Show("No Item Is Selectd")
End If
End Sub
End Class
If you say it can`t be done then i`ll try it
Thanks! Just what I wanted! -
I can not drag graphic items into or out of the Creative Cloud library in Illustrator CC 2014
I've recently upgraded to the new 2014.1.0 release that includes linked Creative Cloud Libraries. However, it appears that my version of Illustrator is not allowing me to drag graphic items into or out of the library panel. I can use the menu prompts and panel buttons to add items to my library or document, however the drag feature is not working. You can see the issue in the screencast below. If anyone else is having this problem and has figured out a solution, I'd greatly appreciate it. It's worth noting that the panel works as advertised in other applications within Creative Suite CC. Thank you.
http://screencast.com/t/Uh3BwMrJtyHello and thanks for your response!
I'm running OS X 10.9.5. I've tried restarting the machine and clearing preferences, yet the problem remains. I may try to reinstall the program to see if that corrects the issue. -
Fade in/out multiple items
Hello,
I have a question about fade in and fade out in Premiere Pro.
I started using Premier Pro not so lang ago. Before that I used Premiere Elements.
In Premiere Elements there was a function where I could select multiple items and activate the "fade in" and the "fade out" function. I can't find it in Premiere Pro. The only option that I see is to apply the effect to each item. But that is a lot of work.
Can someone tell me if it is possible, and if so, how.
Thank you!OP does not mean tracks but items (clips, titles etc).
OK. Fair enough. I wrote it wrong. Sorry about that. And I have no idea why I wrote "three" instead of multiple.
Select just the multiple clips, then right click and select "Nest". Then you can apply the opacity keyframes or transitions to the nest. -
Adding multiple items at once to a SharedCollection
I'm playing around with Cocomo for the first time. I like it
a lot, but haven't yet got enough understanding of the API. So I'm
sure I'm missing something obvious.
Anyway. I want to build an application that share an array of
items between clients. The array should be persistent and when a
new client connects it will get the latest data. At the startup of
the first client I want to fill the shared array with default data.
I also want to revert to this data from time to time in an
applications lifecycle.
I've been checking out the examples and I think a
SharedCollection would be perfect for this scenario (not sure if it
really is?).
The problem I have is when I try to fill the SharedCollection
with data, using the addItem method within a for loop, I only get
an entry with the last item, instead of multiple entries (I'm
checking what data that has been added by using the Dev Console).
I'm doing all this in the SYNCHRONIZATION_CHANGE event (only the
first time it's fired).
I should also note that this happens the first time, when no
CollectionNode already is created. When a CollectionNode already
exist it works.
Is this totally the wrong way to go? Am I missing something
about how CollectionNodes should be created? Any help is highly
appriciated!Hi ,
I actually modified the SharedCollectionExample locally to
have items added in the beginning in synchrinization change
handler. It works fine for me , here is what I did
In the SharedCollectionExample in the examples folder ,
add this line
_model.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE,onSynchronizationChang e);
in the onCreationComplete() method where you first declare
SharedCollection Class.
And in the
private function
onSynchronizationChange(p_evt:CollectionNodeEvent):void
if ( _model.isSynchronized ) {
_model.addItem({State:"Nevada",Capital:"Carson City"});
_model.addItem({State:"California",Capital:"Sacramento"});
I can get multiple items( i.e. these two items i added) in
the very beginning. If you check that the model ( SharedCollection)
is synchronized and add within it the items it should work fine and
will give you an initial set of items. Also, shared collection has
a property called idField and it will index objects based on this
field value with duplicates being overwritten.
I hope this helps. Otherwise please copy fractions of code
where you are still finding problem.
Thanks
Hironmay Basu -
How do you select and move more than one bookmark at a time?
Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
* one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
*see also [[How to use bookmarks to save and organize your favorite websites]]
*and [[Use bookmark folders to organize your bookmarks]] -
Does anyone know how to set up a drag and drop activity where
you can have 1 target that multiple items get dragged to? For
example, an activity where you would drag multiple images into a
trash can.
I've tried, and it seems like once one items goes into the
target, nothing else works because its going on top of the first
item.
TIA!!!OK, I'm having trouble again. I need multiple items to drag
to one target. I'm putting all my actionscript in the same frame,
and here's how it looks:
stop();
name_mc.onPress = function():Void {
this.startDrag(true);
name_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == safe_mc) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
address_mc.onPress = function():Void {
this.startDrag(true);
address_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == safe_mc) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
And I'm getting the following error message:
**Error** Scene=Recap, layer=actions, frame=1:Line 21:
Statement block must be terminated by '}'
address_mc.onRelease = function():Void {
**Error** Scene=Recap, layer=actions, frame=1:Line 27: Syntax
error.
Total ActionScript Errors: 2 Reported Errors: 2
Do you know what I'm doing wrong? -
HI
I have a small sublimation business whereby I print photo's onto small personalised gifts such as mugs, phone covers fridge magnets. I print out the images to fit the size of the gift i.e. a phone cover or mug the images are a specific size.
Often I want to print multiple items onto one page each with a customised size as the paper is expensive and I need to make the most of every sheet. I can't figure out how to do this in photoshop elements 12 can anyone help / advise?I am using windows XP
Thanks LynseyYou have a much better chance to get a useful reply if you ask in the Photoshop Elements forum.
-
How do I select multiple items?
Happy New Year. I am a new Mac user. Recently switched from Windows. How do I select multiple rows? In windows you can CONTROL+click to select multiple items 1 at a time and SHIFT+click to select multiple items in groups. I figured out to do COMMAND+click on Mac to select multiples 1 at a time. I need to delete ALOT of rows. How do I select multiples in groups?
Thanks.KarenSelena and BobHarris have given you the direct sequences.
You can also select multiple disjoint ranges with combinations of ⌘ (command key) click and ⇑ (shift key) click, too.
As you use OS X, you'll find a large number of ⌘ and ⇑ and ˄ (control key) and ⌥ (option key) clicks and shortcuts available (and some were mentioned earlier), and shortcuts such as ⌘ A (select all), ⌘ Z (undo) and a whole host of other shortcuts available.
Here is Apple's Mac 101 / Mac Basics site, which has a good (and free) introduction toward learning to use your Mac.
Maybe you are looking for
-
Macbook Pro Retina, 13-inch, Late 2013 - Photoshop CC crashes
Can anyone help with this issue please? Have been online with Adobe support 3 times and I am still unable to use photoshop cc, have client artwork due tomorrow so if anyone knows how to help me fix this issue I would be forever grateful! Probelm didn
-
Hi, I have been doing video editing on a PC and now moving to iMac. I use it as a DVR recording TV movies to later watch on DVD. From this forum I know I need to convert the MPEG 2 files to a format acceptable to iMovie. I have installed Streamclip w
-
In AFBrandingBarTitle how to use background-image
Tell me the exact use of background-image component in AFBrandingBarTitle with the line of code and full description
-
Duplex Printing w/ Quick Forms
Is there a way to enable duplex printing with Quick Forms so that forms (such as school paper) are printed on both sides of the page? Thanks. Steve
-
Hello All, I am defining a second dimension. Once it defined I checking Consistency and get error: nQSError: 46036] Internal Assertion: Condition i+1 <numKeys. (Presentation Catalog) It appears that I have too many keys defined. How do I get ride of