InputPanel
ReferencesUtility class for aggregating controls to be shown on input panels. This panel (when complete) will populate a Menu or Form or PopOver or....
Properties
Methods
AddBar
#AddBar
#Add a tool bar to this panel.
AddLabel
#Add a label to this input.
AddSpace
#Add a blank vertical gap to this panel. Rows sit two pixels apart, which is right for a run of related bars but too tight when one group of them needs setting apart from the group above.
Parameters:
| height (int = 6) | Height of the gap, on top of the two pixels a row already gets. |
AddText
#Add a textbox to this input.
BeginCategory
#Create a disposable category block.
Parameters:
| category (string) | Name of category. |
Returns: Disposable category to be used inside a 'using' block.
MoveCategoryBelow
#Move an existing category directly underneath another.
RemoveCategory
#Remove a category from this panel. You typically wouldn't do this except sometimes it's less work to let a base class populate the panel and then remove some nonsensical category afterwards.
Parameters:
| name (string) |
RenameCategory
#Rename a category.
ShowAsForm
#public Form ShowAsForm(Control owner, PointF point, RectangleF bounds)
Populate a title-bar less form with the panel contents. An attempt will be made to place the form _next to_ the bounds but failing that it will be placed next to the point.
Parameters:
| owner (Control) | Control which owns this popup. |
| point (PointF) | Point location. |
| bounds (RectangleF) | Source region in control coordinates. |
ToEtoControl
#public Control ToEtoControl()
Create an Eto control which hosts all the inputs on this panel.