aspinei wrote:It would be nice to be able to declare the variables as class attributes. Sometimes, common behavior is shared by different widgets via the same function in the class, which performs a specific action upon other widgets in the same composite.
Note that Designer does provide a toolbar button to convert widgets from local variables into fields. We also plan to add an additional code generation option to allow you to specify on a class by class basis which widget types should be declared as fields or local variables by default (i.e., have Labels created as local variables and Text widgets as fields). You woudl also be able to specify the default initial variable names for different types (like "gd" for GridData).
aspinei wrote:It would also be interesting (altough harder to implement, I think) to be able to use custom widgets which simply inherit Canvas. As in Visual Studio, these widgets would be rendered by a grey box with the word "custom" inside it.
Actually, you can do that now by dropping in a Canvas widget and then changing the class type in the source code. The Designer can support any subclass of a known type in this manner. Eventually, we want to add the ability to select and place a custom widget from within the editor or morph a widget into any subtype.