MostafaElAyoubi / Data-shapes

code for revit, dynamo
49 stars 12 forks source link

MultiInputForm++: Optional MaxHeight, Width and Image Border #18

Closed andydandy74 closed 7 years ago

andydandy74 commented 7 years ago

This PR includes three enhancements for MultiInputForm++

Optional MaxHeight

The newly available options in ListView make it possible to use the form as a dialog box for reports. I've already encountered some cases where the information I wanted to convey did not fit into the form (or rather the resulting form was larger than my screen). Therefore, this PR proposes to make the form scrollable. The node receives a new (optional) input for a maximum height. All of the inputs now reside in a panel and which is made scrollable only if the form height exceeds the maximum height given. scrollable

Optional Width

When displaying Revit elements with long family names, the form is usually not wide enough. Now that we can optionally highlight Revit elements, we need even more space to see the element IDs. Therefore, this PR proposes to make the form width configurable. The node receives a new (optional) input for width. All UI elements are scaled accordingly. If no width is given, the default width is used. customwidth

Optional Image Border

In a couple of cases I've been using PNGs with transparent background. In such cases an image border doesn't make much sense. This PR adds an optional input to the UI.Image Data node. imageborders

MostafaElAyoubi commented 7 years ago

Amazing work Andreas thanks!