self.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
self.SetResizePolicy( ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT );
+ // Enable highlightability
+ self.SetProperty( Toolkit::DevelControl::Property::ACCESSIBILITY_HIGHLIGHTABLE, true );
+
// Enable the text ellipsis.
mController->SetTextElideEnabled( true ); // If false then text larger than control will overflow
return slf.GetProperty( Toolkit::TextLabel::Property::TEXT ).Get< std::string >();
}
+Property::Index TextLabel::AccessibleImpl::GetNamePropertyIndex()
+{
+ return Toolkit::TextLabel::Property::TEXT;
+}
+
std::string TextLabel::AccessibleImpl::GetText( size_t startOffset,
size_t endOffset )
{
if (boundary == Dali::Accessibility::TextBoundary::LINE)
counter++;
}
- if ((counter - 1) == offset)
+ if ((counter > 0) && ((counter - 1) == offset))
{
range.content = txt.substr(start, index - start + 1);
range.startOffset = start;