| [news.eclipse.technology.nebula] Re: select item in the gallery widget |
Hi Vincente,
-- Nicolas
Hello!
I'm spanish developer and i'm including the gallery widget in my program.
The problem i have is that i don't know how can i select an item
programmatically.
I've added a selectionListener and when i click on a item , does right.
But now i fill the gallery with 40 photos, and i don't know how can i tell to the program "select and highlight the last one, for example".
I've tried with setSelection, but can't do that.
In a SWT table, i use select(int itemNumber) and after "notifyListener(SWT.Selection...)", but with the gallery widget i don't know how to make it!!!.
Can you help me...???
And thanks for your help!!!