[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] SWT object as ActiveX control
|
Do you have an SWT event loop or are the events dispatched by the
container? I suspect the problems is that SWT posts events for later
execution lock step with the corresponding event from the operating system.
If you don't have and SWT event loop, even though there is nothing really
for this event loop to do (ie. events are being dispatched by the C code in
the container, not SWT), the posted events won't run.
A quick hack/test of this proposition would be to temporarily hack
Widget.postEvent(int, Event) to call Widget.sendEvent(int, Event).
Steve
"Seith Philipp,
BRC/EDF1" To: platform-swt-dev@xxxxxxxxxxx
<Philipp.Seith@indramat cc:
.de> Subject: [platform-swt-dev] SWT object as ActiveX control
Sent by:
platform-swt-dev-admin@
eclipse.org
07/19/02 09:58 AM
Please respond to
platform-swt-dev
Hello,
i am trying to implement a ActiveX control in Java using SWT. I created a
shell object to which i passed the window handle of the parent using JNI.
As
display for the shell i use the one created by new Display().The parent of
the shell is a blank ATL ActiveX control. In its OnDraw method I call
shell.setSize and shell.redraw. This all works fine, the
org.eclipse.swt.examples.controlexample.ControlExample is displayed with
all
its controls.
But: Only the Listeners of the Scale controls are executed. All other
controls remain dumb.
What else needs to be done? Is the display object the cause?
Philipp
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev