-------------- SET SELECTED BY VALUE --------------
| 624 | } |
| 625 | // -------------- SET SELECTED BY VALUE -------------- |
| 626 | bool dialog::setSelectedByValue(u32 dwValue) |
| 627 | { |
| 628 | if ( this && this->isList() && this->u.list.pdwData ) |
| 629 | { |
| 630 | for ( u8 i = 0; i < this->u.list.bStrs; ++i ) |
| 631 | { |
| 632 | if ( this->u.list.pdwData[i] == dwValue ) |
| 633 | return this->setSelectedIndex(i); |
| 634 | } |
| 635 | } // check |
| 636 | return false; |
| 637 | } |
| 638 | // -------------- SET SELECTED BY STRING ------------- |
| 639 | bool dialog::setSelectedByString(const std::string &s, bool noctrl) |
| 640 | { |
no test coverage detected