[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Use handle passed from Java to Native...
|
Use XtParent() in the C code to climb up the parent chain until you see a
TopLevelShell.
"Greg Roberts" <gwrobert@xxxxxxxxxx> wrote in message
news:b9thjl$1ko$1@xxxxxxxxxxxxxxxx
> We are writing an eclipse plug-in that is going to allow us to lock-down
> our desktop window. In the Java code I am getting all of the workbench
> windows and then I am grabbing the one I want and calling
> getShell().handle on it. I can pass that handle down to the native code
> using JNI and in Windows I can use that handle and cast it to a HWND and
> have controll of that window in the native code. In Linux this does not
> work. The Shell handle is not the same as the XLib or Motif
> Windows/Widgets. So I am wondering if you know of anyway to use the
> getShell() method from the org.eclipse.swt.widgets.shell class so that I
> can pass a handle down to Motif/Xlib and use that to be able to control
> the window. Previously I was using Xlib and was getting a handle on the
> window by cycling through all windows and looking for the window name.
> That is no longer possible however because we are not going to know what
> the window name will be any longer - i18n.
>
> Any assistance would be greatly appreciated.
>
> thank you,
> Greg Roberts
> IBM
> gwrobert@xxxxxxxxxx
>