src/viewer/scrollview.cpp
void ScrollView::AddMessage(const char *message) {
  char form[kMaxMsgSize];
  snprintf(form, sizeof(form), "w%u:%s", window_id_, message);

  char *esc = AddEscapeChars(form);
  SendMsg("addMessage(\"%s\")", esc);
  delete[] esc;
}
// Adds a message entry to the message box.
Adds a message entry to the message box.
Adds a message entry to the message box .
void ScrollView::AddMessage(const char *message) {
  char form[kMaxMsgSize];
  snprintf(form, sizeof(form), "w%u:%s", window_id_, message);
  char *esc = AddEscapeChars(form);
  SendMsg("addMessage(\"%s\")", esc);
  delete[] esc;
}
void ScrollView :: AddMessage ( const char * message ) { char form [ kMaxMsgSize ] ; snprintf ( form , sizeof ( form ) , " " , window_id_ , message ) ; char * esc = AddEscapeChars ( form ) ; SendMsg ( " \" \" " , esc ) ; delete [ ] esc ; }
Adds a message entry to the message box.
Adds a message entry to the message box .