Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Shell win32_new question
SWT Shell win32_new question [message #450596] Tue, 15 February 2005 22:01 Go to next message
Anders Swenson is currently offline Anders SwensonFriend
Messages: 3
Registered: July 2009
Junior Member
I've got an SWT problem I was hoping you'd be able to help me with. We
really want to make modal SWT dialogs that we would call from C/C++
programs. We have an eclipse application with a lot of SWT dialogs that we
would like to re-use. However the only way i can see this working is if we
use win32_new that allows us to pass in a handle for the Shell which works
but there is this nice little warning that is holding me back:
-----
IMPORTANT:This method is not part of the public
API for Shell. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
-----
I was wondering if you think it would be a very bad thing to use
win32_new. If so any ideas on how to get a modal SWT dialog. What are the
chances that win32_new will end up on the chopping block.

Thanks
Anders
Re: SWT Shell win32_new question [message #450645 is a reply to message #450596] Wed, 16 February 2005 14:10 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
I can't really speculate. The warning is accurate. If we need to change
the API for some reason, then I'm really sorry but we will just do it.
Also, this API only exists on Windows.

Now, what exactly are you doing? Perhaps there is an API friendly way to do
it? Since you are using C/C++ code, it seems that you are already platform
specific so there may not be any hope. Can you describe in more detail
exactly which part of you application is C/C++ and which is SWT? For
example, are there GUI elements in C/C++?

"Anders" <aswenson@us.ibm.com> wrote in message
news:cutrfv$rj$1@www.eclipse.org...
> I've got an SWT problem I was hoping you'd be able to help me with. We
> really want to make modal SWT dialogs that we would call from C/C++
> programs. We have an eclipse application with a lot of SWT dialogs that we
> would like to re-use. However the only way i can see this working is if we
> use win32_new that allows us to pass in a handle for the Shell which works
> but there is this nice little warning that is holding me back:
> -----
> IMPORTANT:This method is not part of the public
> API for Shell. It is marked public only so that it
> can be shared within the packages provided by SWT. It is not
> available on all platforms, and should never be called from
> application code.
> -----
> I was wondering if you think it would be a very bad thing to use
> win32_new. If so any ideas on how to get a modal SWT dialog. What are the
> chances that win32_new will end up on the chopping block.
>
> Thanks
> Anders
>
>
Previous Topic:Freeze Table Columns
Next Topic:How to enable tab traversal in TableViewer
Goto Forum:
  


Current Time: Fri Apr 26 16:17:04 GMT 2024

Powered by FUDForum. Page generated in 0.02971 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top