BIS fnc guiMessage TKOH: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Feature arma3|" to "{{Feature|arma3|")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| TKOH |Game name=
| TKOH |Game name=
Line 7: Line 6:


|gr1= GUI |GROUP1=
|gr1= GUI |GROUP1=
____________________________________________________________________________________________


| Shows customized native message box to user.
| Shows customized native message box to user.
{{Feature|arma3|For the {{arma3}} syntax, see [[BIS_fnc_guiMessage]].}} |DESCRIPTION=
{{Feature|arma3|For the {{arma3}} syntax, see [[BIS_fnc_guiMessage]].}} |DESCRIPTION=
____________________________________________________________________________________________


| [message, header, position, isCancel, parent, pause] call BIS_fnc_guiMessage; |SYNTAX=
| [message, header, position, isCancel, parent, pause] call BIS_fnc_guiMessage; |SYNTAX=
Line 40: Line 37:


|x3= <code>[["Enabled Item", ["Disabled Item"]], "Header"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>|Example3=
|x3= <code>[["Enabled Item", ["Disabled Item"]], "Header"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>|Example3=
____________________________________________________________________________________________


| [[hintC]], [[BIS_fnc_GUIhint]] |SEEALSO=
| [[hintC]], [[BIS_fnc_GUIhint]] |SEEALSO=

Revision as of 23:08, 16 January 2021

Hover & click on the images for description

Description

Description:
Shows customized native message box to user.
Arma 3
For the Arma 3 syntax, see BIS_fnc_guiMessage.
Execution:
spawn
Groups:
GUI

Syntax

Syntax:
[message, header, position, isCancel, parent, pause] call BIS_fnc_guiMessage;
Parameters:
message: String, Structured Text or Array: When variable BIS_fnc_guiMessage_cursel is defined as a Number, item with this index will be selected.
header: String or Structured Text - (Optional, default "") header text
position: Array - (Optional) position in format [x,y,w,h]
isCancel: Boolean or Array - (Optional, default true) true to display cancel button or array with button texts [okText, cancelText]
parent: Display - (Optional) parent display
pause: Boolean - (Optional) true to pause simulation when message window is open
Return Value:
Array - [endState, lbId]
  • endState: Boolean - true when clicked OK button, false when escaped or clicked on Cancel button
  • lbId: Number - (Optional, returned if listbox was used) selected listbox item
Returned only after message box is closed.

Examples

Example 1:
["Hello World"] spawn BIS_fnc_guiMessage;
Example 2:
TakeOn BIS fnc guiMessage.jpg
["Message", "Header", nil, true] spawn BIS_fnc_guiMessage;
Example 3:
[["Enabled Item", ["Disabled Item"]], "Header"] spawn BIS_fnc_guiMessage;

Additional Information

See also:
hintCBIS_fnc_GUIhint

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section