MCPcopy Create free account
hub / github.com/bk138/multivnc / onUpdateTimer

Method onUpdateTimer

src/gui/MyFrameLog.cpp:63–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63void MyFrameLog::onUpdateTimer(wxTimerEvent& event)
64{
65 wxArrayString log = VNCConn::getLog();
66 if(log.GetCount() - lines_printed > 50)
67 {
68 wxBeginBusyCursor();
69 Freeze();
70 }
71
72 while(lines_printed < log.GetCount())
73 {
74 *text_ctrl_log << log[lines_printed];
75 ++lines_printed;
76 }
77
78 if(IsFrozen()) {
79 Thaw();
80 wxEndBusyCursor();
81 }
82}
83
84
85

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected