Torque3D Documentation / _generateds / GuiScriptNotifyCtrl

GuiScriptNotifyCtrl

Engine/source/gui/core/guiScriptNotifyControl.h

More...

Event Callbacks


bool

Script Notify : onAddObject(object)

bool

Script Notify : onRemoveObject(object)

bool

Script Notify : onResize()

bool

Script Notify : onChildResized(child)

bool

Script Notify : onParentResized()

Initialization

DECLARE_CATEGORY("Gui Other Script" )
DECLARE_DESCRIPTION("A <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> that implements various script callbacks <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">for\n</a>" "certain GUI events." )
bool
resize(const Point2I & newPosition, const Point2I & newExtent)

Changes the size and/or position of this control.

parentResized(const RectI & oldParentRect, const RectI & newParentRect)

Called when this objects parent is resized.

Called when one of this objects children is removed.

Called when this object has a new child.

DECLARE_CALLBACK(void , onResize , (SimObjectId ID) )
DECLARE_CALLBACK(void , onChildResized , (SimObjectId ID, SimObjectId childID) )
DECLARE_CALLBACK(void , onParentResized , (SimObjectId ID) )
setFirstResponder(GuiControl * firstResponder)

Sets the first responder for child controls.

Sets this object to be a first responder.

Occurs when the control loses first-responder status.

Receive a message from another control.

Called if this object is a dialog, when it is added to the visible layers.

Called if this object is a dialog, when it is removed from the visible layers.

Private Types

Parent 

Detailed Description

Event Callbacks


bool mOnChildAdded 

Script Notify : onAddObject(object)

bool mOnChildRemoved 

Script Notify : onRemoveObject(object)

bool mOnResize 

Script Notify : onResize()

bool mOnChildResized 

Script Notify : onChildResized(child)

bool mOnParentResized 

Script Notify : onParentResized()

bool mOnLoseFirstResponder 

Script Notify : onLoseFirstResponder()

bool mOnGainFirstResponder 

Script Notify : onGainFirstResponder()

Initialization

DECLARE_CONOBJECT(GuiScriptNotifyCtrl )

DECLARE_CATEGORY("Gui Other Script" )

DECLARE_DESCRIPTION("A <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> that implements various script callbacks <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">for\n</a>" "certain GUI events." )

GuiScriptNotifyCtrl()

~GuiScriptNotifyCtrl()

resize(const Point2I & newPosition, const Point2I & newExtent)

Reimplemented from: GuiControl

childResized(GuiScriptNotifyCtrl * child)

parentResized(const RectI & oldParentRect, const RectI & newParentRect)

Reimplemented from: GuiControl

onChildRemoved(GuiControl * child)

Reimplemented from: GuiControl

onChildAdded(GuiControl * child)

Reimplemented from: GuiControl

DECLARE_CALLBACK(void , onResize , (SimObjectId ID) )

DECLARE_CALLBACK(void , onChildAdded , (SimObjectId ID, SimObjectId childID) )

DECLARE_CALLBACK(void , onChildRemoved , (SimObjectId ID, SimObjectId childID) )

DECLARE_CALLBACK(void , onChildResized , (SimObjectId ID, SimObjectId childID) )

DECLARE_CALLBACK(void , onParentResized , (SimObjectId ID) )

DECLARE_CALLBACK(void , onLoseFirstResponder , (SimObjectId ID) )

DECLARE_CALLBACK(void , onGainFirstResponder , (SimObjectId ID) )

setFirstResponder(GuiControl * firstResponder)

Reimplemented from: GuiControl

setFirstResponder()

Reimplemented from: GuiControl

clearFirstResponder()

onLoseFirstResponder()

Reimplemented from: GuiControl

onMessage(GuiScriptNotifyCtrl * sender, S32 msg)

Receive a message from another control.

onDialogPush()

Reimplemented from: GuiControl

onDialogPop()

Reimplemented from: GuiControl

initPersistFields()

Private Types

typedef GuiControl Parent