Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Shell.setParent( canvas ) in X-Windows ?


Leslie, Control.setParent() is evil.  It is unsupported on platforms other than Windows and is likely to remain that way in future.

What you are looking for is "Windows MDI-like shell within a shell" and this is currently unsupported in SWT.  The problem is that the behavior and look and feel of the shell trimmings on platforms where there is a window manager is controled by the window manager.  Window managers only work with top level shells.

Since I couldn't find the original bugzilla reprt that requested this feature I have entered a new one: http://bugs.eclipse.org/bugs/show_bug.cgi?id=29891



Leslie.Godwin@xxxxxxxxxxxx
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

01/21/03 01:01 AM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        [platform-swt-dev] Shell.setParent( canvas ) in X-Windows ?



Hi :-)
 
This is my first message here.
 
I'm starting development on a visual SWT form designer for eclipse.
Currently I'm using version 2.0.0 of eclipse.
 
What I'm doing is I have a Shell object inside a Canvas Composite
control in my custom Eclipse EditorPart.
I set the Shell's parent to the panel inside the custom editor's
initPartControls() method.
 
On windows the Shell is parented into the main panel fine, but on X it
isn't been parented, that is the Shell opens fine, but it's in the
Displays visual space.
 
Is this normal behaviour for X (Maybe this isn't the proper design ?) I
have never programmed for X-Windows before.
Is there some special way I have to attach a Shell into a Composite
control to make it work on X ?
 
That brings me to another question.
I'm trying to use AST to do code generation. How do I get the source
generated from the AST object once I've added all my ASTNodes ?
(I know it's not the correct group….still trying to get signed up. :-)


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top