[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Passing events from Widget to Widget
|
Tom Schindl wrote:
Well I've also tried that and guess what no effect on OS-X (at least for
the Table-Example) :-)
Is it that you want the SWT.MouseDown to cause a selection event on the
table? It does sound like display.post(*) is what you want.
Right know you are posting the event with the event.widget == s, no?
What happens if you update the widget before you post?
public void handleEvent(Event event) {
s.close();
// set the widget to the table, or maybe one of the
// table items so it can be translated into a table selection
event.widget = someTableItem;
display.post(event);
}
Later,
PW
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm