| 846 | } |
| 847 | |
| 848 | void TextEdit::OnTimerExpired() |
| 849 | { |
| 850 | if (IsVisible() == false) |
| 851 | { |
| 852 | timer->Stop(); |
| 853 | return; |
| 854 | } |
| 855 | |
| 856 | if (cursor_blink_visible) |
| 857 | timer->Start(500); |
| 858 | else |
| 859 | timer->Start(500); |
| 860 | |
| 861 | cursor_blink_visible = !cursor_blink_visible; |
| 862 | Update(); |
| 863 | } |
| 864 | |
| 865 | void TextEdit::OnGeometryChanged() |
| 866 | { |