[This is preliminary documentation and is subject to change.]
Display modal message box with given prompt, title and owner. Optionally specifies buttons, icon and options
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static DialogResult Modal_PTWBIO( string Prompt, string Title, Object Owner, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Image Icon, MessageBox..::..MessageBoxOptions Options ) |
| Visual Basic |
|---|
Public Shared Function Modal_PTWBIO ( _ Prompt As String, _ Title As String, _ Owner As Object, _ Buttons As MessageBox..::..MessageBoxButton..::..Buttons, _ Icon As Image, _ Options As MessageBox..::..MessageBoxOptions _ ) As DialogResult |
| Visual C++ |
|---|
public: static DialogResult Modal_PTWBIO( String^ Prompt, String^ Title, Object^ Owner, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Image^ Icon, MessageBox..::..MessageBoxOptions Options ) |
| F# |
|---|
static member Modal_PTWBIO : Prompt:string * Title:string * Owner:Object * Buttons:MessageBox..::..MessageBoxButton..::..Buttons * Icon:Image * Options:MessageBox..::..MessageBoxOptions -> DialogResult |
| JScript |
|---|
public static function Modal_PTWBIO( Prompt : String, Title : String, Owner : Object, Buttons : MessageBox..::..MessageBoxButton..::..Buttons, Icon : Image, Options : MessageBox..::..MessageBoxOptions ) : DialogResult |
Parameters
- Prompt
- Type: System..::..String
Prompt to be shown
- Title
- Type: System..::..String
Message box title
- Owner
- Type: System..::..Object
The window message box window will be modal to (can be null). Typical values are IWin32Window and Window If implementation does not recognize type of owner it ignores it.
- Buttons
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxButton..::..Buttons
Defines which buttons will be available to user
- Icon
- Type: System.Drawing..::..Image
Icon that will be shown on messagebox. Default preffered size is 64×64 px (can be changed in derived class). Icon can be null.
- Options
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxOptions
Options that controls messagebox layout and behaviour
Return Value
Indicates button clicked by user
See Also
Version History
1.5.3
- (Beta) Fixed: This function always returns None
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.