[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] SWT Event Processing
|
Thanks, almost there. Is there any
way to provide user defined event types (e.g., equivalent of WM_USER)... I
see several well defined event types defined in the documentation. In my
case, I want to report data gathered in a thread to the UI so I can graph
it. All typed listeners appear to deal with aspects of window
control. I was hoping to find SWT.UNTYPED or something I could use in the
notifyListeners first parameter so I don't inadvertently cause other listeners
for some arbitrary type I elect to use to try to interpret my event.
I'm
sure I'm missing a basic concept... TIA for your help.
Nat
Friday, September 12, 2003 11:56 AM
To:
platform-swt-dev@xxxxxxxxxxx
cc: platform-swt-dev@xxxxxxxxxxx,
platform-swt-dev-admin@xxxxxxxxxxx
From: Steve Northover
<Steve_Northover@xxxxxxxxxx>
Subject: Re: [platform-swt-dev] SWT Event
Processing
You could do
this: Event event = new
Event(); shell.notifyListeners(SWT.Close, event); However, no operating system work would happen. You
would simply be invoking any SWT.Close listeners (ie. the window would not close
unless a listener did it). Sorry, there is no portable way to send a
Windows message and invoke WM_CLOSE.