MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / onAdd

Method onAdd

Engine/source/gui/controls/guiTextEditCtrl.cpp:192–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192bool GuiTextEditCtrl::onAdd()
193{
194 if ( ! Parent::onAdd() )
195 return false;
196
197 //create the history buffer
198 if ( mHistorySize > 0 )
199 {
200 mHistoryBuf = new UTF16*[mHistorySize];
201 for ( S32 i = 0; i < mHistorySize; i++ )
202 {
203 mHistoryBuf[i] = new UTF16[GuiTextCtrl::MAX_STRING_LENGTH + 1];
204 mHistoryBuf[i][0] = '\0';
205 }
206 }
207
208 if( mText && mText[0] )
209 {
210 setText(mText);
211 }
212
213 return true;
214}
215
216void GuiTextEditCtrl::onStaticModified(const char* slotName, const char* newValue)
217{

Callers

nothing calls this directly

Calls 1

setTextFunction · 0.70

Tested by

no test coverage detected