[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Adding widgets to a composite after creation.

Adding widgets to a composite after creation.

Does anyone know if it is possible to add more widgets to a composite after creation, say via an action or something similar.

The basic idea is I need to build up a dynamic form, based on user input. I could use something very generic (something like the PropertySheetView) but I want to be able to add some more advanced input widgets depending on field type etc...

At the moment I have tried what I thought was the most obvious path, which is to store off the parent passed to 'createPartControl' then just use it from the actions like you would normally do during creation (new Label(storedParent, SWT...). But obviously that does not work or I wouldn't have to ask?

Any help appreciated (even if it is to call me stupid and point me at a way simpler way to achieve what I want).