void SelectionLength::set(PropertyReceiver* receiver, const String& value) { MultiLineEditbox* eb = static_cast<MultiLineEditbox*>(receiver); uint selLen = PropertyHelper::stringToUint(value); eb->setSelection(eb->getSelectionStartIndex(), eb->getSelectionStartIndex() + selLen); }
void SelectionStart::set(PropertyReceiver* receiver, const String& value) { MultiLineEditbox* eb = static_cast<MultiLineEditbox*>(receiver); uint selStart = PropertyHelper::stringToUint(value); eb->setSelection(selStart, selStart + eb->getSelectionLength()); }