Hi,

I am working with the XTextComponent at the moment. The method
`setSelection' selects some text, but the not selected text is
displayed in white color. I've to change the default background color
to see the not selected text:

const Reference<XTextComponent> component(control, UNO_QUERY);

if (component.is()) {
   const OUString text(OUString::createFromAscii("Test"));
   component->setText(text);
   Selection selection;
   selection.Min = 0;
   selection.Max = 2;
   component->setSelection(selection);
}

Is this a bug or do I've forgotten something?

With best regards
Achim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to