| 600 | } |
| 601 | |
| 602 | void 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 | |
| 617 | void LineEdit::OnLostFocus() |
| 618 | { |