| 1296 | } |
| 1297 | } |
| 1298 | void ztalkbox::set_text(const char* s) |
| 1299 | { |
| 1300 | ztextbox& d = *dialog_box; |
| 1301 | |
| 1302 | if (s) |
| 1303 | { |
| 1304 | d.set_text(s); |
| 1305 | } |
| 1306 | else |
| 1307 | { |
| 1308 | d.clear_text(); |
| 1309 | } |
| 1310 | |
| 1311 | d.refresh(); |
| 1312 | |
| 1313 | if (shared.active != this) |
| 1314 | { |
| 1315 | return; |
| 1316 | } |
| 1317 | |
| 1318 | if (shared.state) |
| 1319 | { |
| 1320 | shared.state->stop(); |
| 1321 | shared.state = NULL; |
| 1322 | } |
| 1323 | |
| 1324 | ((xtextbox::layout*)&shared.lt)->refresh(d.tb, false); |
| 1325 | |
| 1326 | if (layout_contains_streams()) |
| 1327 | { |
| 1328 | lock_stream(); |
| 1329 | } |
| 1330 | |
| 1331 | shared.state = shared.states[1]; |
| 1332 | shared.state->start(); |
| 1333 | } |
| 1334 | void ztalkbox::set_text(U32 id) |
| 1335 | { |
| 1336 | if (id == 0) |
no test coverage detected