src/viewer/scrollview.cpp
char *ScrollView::ShowInputDialog(const char *msg) {
  SendMsg("showInputDialog(\"%s\")", msg);
  SVEvent *ev;
  // wait till an input event (all others are thrown away)
  ev = AwaitEvent(SVET_INPUT);
  char *p = new char[strlen(ev->parameter) + 1];
  strcpy(p, ev->parameter);
  delete ev;
  return p;
}
// Shows a modal Input Dialog which can return any kind of String
Shows a modal Input Dialog which can return any kind of String
Shows a modal Input Dialog which can return any kind of String
char *ScrollView::ShowInputDialog(const char *msg) {
  SendMsg("showInputDialog(\"%s\")", msg);
  SVEvent *ev;
  ev = AwaitEvent(SVET_INPUT);
  char *p = new char[strlen(ev->parameter) + 1];
  strcpy(p, ev->parameter);
  delete ev;
  return p;
}
char * ScrollView :: ShowInputDialog ( const char * msg ) { SendMsg ( " \" \" " , msg ) ; SVEvent * ev ; ev = AwaitEvent ( SVET_INPUT ) ; char * p = new char [ strlen ( ev -> parameter ) + 1 ] ; strcpy ( p , ev -> parameter ) ; delete ev ; return p ; }
Shows a modal Input Dialog which can return any kind of String
Shows a modal Input Dialog which can return any kind of String
// wait till an input event (all others are thrown away)