-
Notifications
You must be signed in to change notification settings - Fork 3
Utils.MultilineStringInputDialog
Back to home | Back to Reference | View raw text
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi.Utils
SolidShineUi.Utils.MultilineStringInputDialog[[MultilineStringInputDialog]]
end
subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
end
subgraph SolidShineUi
SolidShineUi.FlatWindow[[FlatWindow]]
end
System.Windows.Markup.IComponentConnector --> SolidShineUi.Utils.MultilineStringInputDialog
SolidShineUi.FlatWindow --> SolidShineUi.Utils.MultilineStringInputDialog
Type | Name | Methods |
---|---|---|
string |
Description Get or set the description text to display above the text box. This text should describe what the user should enter into the text box. |
get, set |
bool |
DialogResult Get the result of the dialog when it is closed. "False" refers to the user cancelling the operation, while "True" refers to the user confirming, by clicking "OK" or pressing the Enter key. |
get |
bool |
EnterKeyConfirms Get or set whether the Enter key can be used to confirm the dialog. If enabled, pressing down the Enter key will be treated as if the user pressed "OK". |
get, set |
bool |
EscapeKeyCancels Get or set whether the Escape key can be used to cancel the dialog. If enabled, pressing down the Escape key will be treated as if the user pressed "Cancel". |
get, set |
bool |
SelectTextOnFocus Get or set whether all of the text in the text box should be selected when the text box receives focus. |
get, set |
string |
Value Get or set the text value of the input dialog's text box. |
get, set |
Returns | Name |
---|---|
void |
InitializeComponent ()InitializeComponent |
Returns | Name |
---|---|
Delegate |
_CreateDelegate (Type delegateType, string handler) |
IComponentConnector
-
FlatWindow
public MultilineStringInputDialog()
Create a StringInputDialog with nothing preset.
public MultilineStringInputDialog(ColorScheme cs)
Type | Name | Description |
---|---|---|
ColorScheme |
cs | The color scheme to use for the window. |
Create a StringInputDialog with a color scheme.
public MultilineStringInputDialog(ColorScheme cs, string title, string desc, string value)
Type | Name | Description |
---|---|---|
ColorScheme |
cs | The color scheme to use for the window. |
string |
title | The title of the window. |
string |
desc | The description to give to the user. |
string |
value | The value to place in the text box. By default, the text box is empty. |
Create a StringInputBox with prefilled values.
public virtual void InitializeComponent()
InitializeComponent
internal Delegate _CreateDelegate(Type delegateType, string handler)
Type | Name | Description |
---|---|---|
Type |
delegateType | |
string |
handler |
public string Value { get; set; }
Get or set the text value of the input dialog's text box.
public bool DialogResult { get; }
Get the result of the dialog when it is closed. "False" refers to the user cancelling the operation, while "True" refers to the user confirming, by clicking "OK" or pressing the Enter key.
public bool EnterKeyConfirms { get; set; }
Get or set whether the Enter key can be used to confirm the dialog. If enabled, pressing down the Enter key will be treated as if the user pressed "OK".
public bool EscapeKeyCancels { get; set; }
Get or set whether the Escape key can be used to cancel the dialog. If enabled, pressing down the Escape key will be treated as if the user pressed "Cancel".
public bool SelectTextOnFocus { get; set; }
Get or set whether all of the text in the text box should be selected when the text box receives focus.
public string Description { get; set; }
Get or set the description text to display above the text box. This text should describe what the user should enter into the text box.
Try to keep the description to about a sentence long. Ideally, the overall design of the program should make it apparent what the user should enter into the text box without reading the description.
Generated with ModularDoc