I agree with you Jeff, I'm seeing the same issue.  I don't think it's
anything we can solve, I think this will have to be fixed in the next
release of the toolkit.
 
Chip
 

  _____  

From: Jeff Weiss [mailto:[email protected]] 
Sent: Wednesday, October 20, 2010 3:12 PM
To: [email protected]
Subject: using the shared object listbox



I want to use the shared object simpleDialogs.ListBox to have an option to
either copy the entire list to the clipboard or close without copying.

The way the listbox seems to work is that if you select an item, that item
text is returned when the default button is pressed.  Nothing is returned
when the cancel button is pressed.

The closest thing I can figure  is to use the cancel button to copy text to
the clipboard because it always returns a 0 length string.  

Here is the problem-if the OK button is selected without selecting anything
in the listbox, a 0 length string is also returned.  

Is there another way to determine which button was pressed?

Or better yet, is there a way to make sure the first item is always
selected-as in:

focusedIndex = 1

 

Aaron and others, I would appreciate your suggestions.  

Thanks,

Jeff Weiss

 

 

Reply via email to