realbasic-nug
[Top] [All Lists]

Re: Multiple Selections in ListBoxes and Dialogs

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Multiple Selections in ListBoxes and Dialogs
From: David Harris <dharris at davosystems dot com>
Date: Sat, 30 Oct 2004 19:20:42 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <5B5BA34E-29CC-11D9-91C6-0003930333B8 at davosystems dot com>
On Oct 29, 2004, at 1:02 PM, David Harris wrote:

(1) Is there a way to add items programmatically to a multiple selection in a ListBox? I've tried doing this with myListBox.Selected(RowNum) = True and it clears the previous selection. myListBox.ListIndex = RowNum doesn't work either, but I didn't think it would.

I figured this one out; code of mine was inadvertently clearing the previous selection when the next item was selected.

(2) In an OpenDialog, if you switch to list view you can make multiple selections, but it appears to return only one FolderItem. I would like users to be able to use a dialog to add several items to a list at once, just as they can by dragging a number of items at once from a folder window. Is there a way to do this?

I'm still stumped by this and if anyone can help me with it I'd really appreciate it! The documentation does say that an OpenDialog returns a FolderItem, which to me means a single FolderItem and is the result I've been getting. However, an OpenDialog does allow users to select more than one item. To me, this is potentially confusing behaviour and I'm hoping that someone knows of a solution (other than not using an Open Dialog ;) ) that will allow the multiple selection to be returned.

Thanks in advance

David Harris
Davo Systems
410-90 Waller Street
Whitby, Ontario L1R 2B7
(905) 767-3538
dharris at davosystems dot com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>