Method dialog.showInputNumber
Overload
Shows dialog with a number edit field and gets that number.
public static bool showInputNumber(out int i, string text1 = null, DText text2 = null, int? editText = null, DFlags flags = 0, AnyWnd owner = default)
Parameters
|
i (int)
Variable that receives the number. |
|
text1 (string)
Heading text. |
|
text2 (DText)
Message text (above the edit field). |
|
editText (int?)
Initial edit field text. |
|
flags (DFlags)
Enum: CommandLinks, ExpandDown, Wider, XCancel, CenterOwner, CenterMouse, RawXY, MinimizeButton, Topmost, NoTopmost. |
|
owner (AnyWnd)
Owner window. See dialog.OwnerWindow. |
Returns
|
bool
|
Exceptions
|
Win32Exception
Failed to show dialog. |
Remarks
Calls dialog.showInput and converts string to int.
Examples
int i;
if(!dialog.showInputNumber(out i, "Example")) return;
print.it(i);