Attaches a message object to the caller’s node.
setMessage(obj);
Parameter |
Description |
obj |
The message object Can be one of the following: SGNode object that was created using SGWorld.creator.createMessage() (which is a node of type sgNodeTypeMessage), an SGPopup or SGNotification object |
Remarks
Message objects are created using SGWorld.creator.createMessage method, they are then attached to other node objects. The message object specifies what to do when the user clicks on the objects they are attached to. Usually they display a text or an HTML window for the user. For example, for a polygon object that denotes a lake on the terrain, the user can create a message object that displays text information window about the lake when it is clicked by the user.