MCPcopy Create free account
hub / github.com/ZDoom/Raze / OnSetFocus

Method OnSetFocus

libraries/ZWidget/src/widgets/lineedit/lineedit.cpp:602–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void LineEdit::OnSetFocus()
603{
604 if (!readonly)
605 timer->Start(500);
606 if (select_all_on_focus_gain)
607 SelectAll();
608 ignore_mouse_events = true;
609 cursor_pos = (int)text.length();
610
611 Update();
612
613 if (FuncFocusGained)
614 FuncFocusGained();
615}
616
617void LineEdit::OnLostFocus()
618{

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.80
StartMethod · 0.45

Tested by

no test coverage detected