From Bohemia Interactive Community
Revision as of 18:35, 3 December 2018 by Erentar (talk | contribs) (Bot: Reverted to revision 104063 by killzone_kid on 2017-07-29T09:04:56Z)
Jump to navigation Jump to search
Introduced with Armed Assault version 1.001.00
Hover & click on the images for descriptions


Creates child display of given display and loads from "resourceName". The notable difference between createDisplay and createDialog is that with createDisplay the player would be able to move whilst having control of the mouse pointer.

Since Arma 3 v1.49.131653 createDisplay returns Display and will first look in description.ext for resourceName config, if not found, it will then look in main config.

Displays created with both createDisplay and createDialog will take control of the mouse pointer and will close when user presses Esc. _emptyDisplay = findDisplay 46 createDisplay "RscDisplayEmpty"; If display is needed which exists independently, it can be created in IGUI layer with cutRsc command. "someLayer" cutRsc ["RscTitleDisplayEmpty", "PLAIN"]; _emptyDisplay = uiNamespace getVariable "RscTitleDisplayEmpty"; Such display can be closed with closeDisplay command or by overwriting the same cut layer with another output. Note that "Unload" EH for some reason does not work with such display.


parent createDisplay resourceName
parent: Display
resourceName: String - custom display class defined in description.ext or existing display class from main config
Return Value:
Nothing or (Since Arma 3 v1.49.131653) Display


Example 1:
findDisplay 46 createDisplay "RscCredits";

Additional Information

See also:


Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.


Bottom Section

Posted on August 23, 2014 - 23:36 (UTC)
Killzone Kid
Do not simply createDisplay from UI context code such as "ButtonDown" UI Event handler, as it will crash the game. Instead use spawn scope: [] spawn {findDisplay 46 createDisplay "RscCredits"};
Posted on November 15, 2014 - 13:20 (UTC)
Arma3 v1.34

When using CreateDisplay instead of CreateDialog, all the commands for working with the controls of the display only work with the control version, not the IDC version.

EXAMPLE: LbAdd [1234, "item"]; // does not work on displays, and won't error either _ctrl LbAdd "item"; // does work with displays
So you have to use the control(DisplayCtrl) and not the IDC.
Posted on July 29, 2017 - 09:02 (UTC)
Killzone Kid
A user dialog created with createDisplay over mission display (findDisplay 46) will stop display event handlers added to mission display from firing. However if it is created with createDialog then the event handlers continue to work.