Changeset 272 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_console.cc
- Timestamp:
- Jan 24, 2013, 3:32:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_console.cc
r257 r272 7 7 :WContainerWidget() 8 8 { 9 setObjectName("console");9 setObjectName("console"); 10 10 } 11 11 … … 17 17 18 18 void GWt_console::addConsoleMessage(WString msg) { 19 20 WText *w = new WText(this);21 w->setTextFormat(PlainText);22 w->setText(msg);23 w->setInline(false);24 19 20 WText *w = new WText(this); 21 w->setTextFormat(PlainText); 22 w->setText(msg); 23 w->setInline(false); 24 25 25 /* 26 * Little javascript trick to make sure we scroll along with new content27 */28 wApp->doJavaScript(this->jsRef() + ".scrollTop += "29 + this->jsRef() + ".scrollHeight;");30 26 * Little javascript trick to make sure we scroll along with new content 27 */ 28 wApp->doJavaScript(this->jsRef() + ".scrollTop += " 29 + this->jsRef() + ".scrollHeight;"); 30 31 31 } 32 32
Note: See TracChangeset
for help on using the changeset viewer.