Hi Manuel,

In a dialog I am displaying from a OOBasic script, I'd like to move the focus on different widgets, using the keyboard arrows. More specifically, I have two ListBox side-by-side. The one on the left contains topics, the one on the right is filled dynamicly with relevant articles, according to the selected topic. The goal here is to use the keyboard to select a topic and then an article.

I found this thread http://www.oooforum.org/forum/viewtopic.phtml?t=32743#130869, that mentions a setFocus() method. Unfortunately, it only applies to ::com::sun::star::awt::XWindow. Is there a way to programmaticaly shift focus on an arbitray dialog control ? <http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XWindow.html>

Thank you
<http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XWindow.html>

The listbox is a css.awt.UnoListBox ( http://api.openoffice.org/docs/common/ref/com/sun/star/awt/UnoControlListBox.html ) which includes the service css.awt.UnoControl ( http://api.openoffice.org/docs/common/ref/com/sun/star/awt/UnoControl.html ).

The latter exports css.awt.XWindow ... so the method getFocus() should be available at every control.

Regards

Stephan

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

Reply via email to