CSimpleEditBox::Insert
function · ui · primitive
- Address
0x77bee0· 737 bytes, up to0x77c1c0- Meaning
- Inserts text at the cursor under the numeric filter and the byte and letter limits, running the scripts
- Confidence
- verified, proof one
- Finding
- ui/editbox#inserting-text
- Test
ui::editbox_markup_insert_refusal_range
Finding: Inserting text in ui: EditBox
An insertion inside an escape or a link is refused. Otherwise it first deletes the selection. In a
numeric box a text with any character outside 0 to 9 is then refused whole, so typing a
letter over a selection only deletes it. The text is spliced in at the cursor, which moves past
it. Then the byte limit and the letter limit each trim characters from the end. With scripts on,
it runs OnChar with the inserted text, and OnSpacePressed once when the text holds a space.
The derivation is in the doc.
Callers 5
- CSimpleEditBox::OnInputLanguage ui
- CSimpleEditBox::OnKeyDown ui
- CSimpleEditBox::SetText ui
- CSimpleEditBox::InsertChar ui
- EditBox::Insert ui
Callees 12
- 0x4100f0 crt
- sgetu8 unassigned
- SStrLen storm
- FrameScriptExecute ui
- FrameScriptExecuteVarArgs ui
- CSimpleEditBox::RebuildTokenClasses ui
- CSimpleEditBox::CountLetters ui
- CSimpleEditBox::PrevTokenStart ui
- CSimpleEditBox::ReserveText ui
- CSimpleEditBox::DeleteChars ui
- CSimpleEditBox::DeleteSelection ui
- CSimpleEditBox::SetCursorPosition ui
Calls and jumps by a bare address, from tables/calls.tsv.