[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [de-users] Formular: Wie setze ich den Focus bei einem Tabellenkontrollfeld?
[Thread Prev] | [Thread Next]
- Subject: Re: [de-users] Formular: Wie setze ich den Focus bei einem Tabellenkontrollfeld?
- From: Robert Großkopf <robert@familiegrosskopf.de>
- Date: Sun, 13 Nov 2011 10:31:17 +0100
- To: users@de.libreoffice.org
Ich antworte mir kurz selbst, damit klar ist, dass sich die Sache
erledigt hat:
>
> ich konstruiere gerade ein Formular mit einem Tabellenkontrollfeld, in
> dem bei falschen Eingaben der Focus auf das falsche Feld zurückgesetzt
> werden soll:
> oDoc = thisComponent
> oDrawpage = oDoc.Drawpage
> oForm = oDrawpage.Forms.getByName("Filter")
> oSubForm = oForm.getByName("Ausleihe")
> oFeld = oSubForm.getByName("Grid")
> REM Der Controller ist in diesem Fall das Tabellenkontrollfeld. Die
> Teile der Tabelle sind nur über den Index erreichbar.
> oDocCrl = ThisComponent.getCurrentController()
> oCtlView = oDocCrl.GetControl(oFeld)
> oListView = oCtlView.getByIndex(0)
> oListView.setFocus()
>
> Die Methode "setFocus" ist in den Methoden aufgeführt (dbg_methods).
> Allein der Cursor reagiert darauf nicht.
> Ich meine, so etwas schon einmal erreicht zu haben - nur wie?
Auch wenn "setFocus" vorgesehen ist funktioniert es anscheinend nicht.
Ich muss nach oCtlView, also der Ansicht des Tabellenkontrollfeld gehen
und dann
oCtlView.SetCurrentColumnPosition(0)
setzen - dann springt der Cursor zurück und ich werde zu einer neuen
Eingabe veranlasst.
Gruß
Robert
--
Informationen zum Abmelden: E-Mail an users+help@de.libreoffice.org
Probleme? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert
| [de-users] MySQL Connector for OpenOffice - Erst-Zugriff ist extrem langsam | LuFle <LuFle@gmx.at> |
| [de-users] Formular: Wie setze ich den Focus bei einem Tabellenkontrollfeld? | Robert Großkopf <robert@familiegrosskopf.de> |
- Prev by Date: [de-users] Formular: Wie setze ich den Focus bei einem Tabellenkontrollfeld?
- Next by Date: [de-users] Installation
- Previous by thread: [de-users] Formular: Wie setze ich den Focus bei einem Tabellenkontrollfeld?
- Next by thread: [de-users] MySQL Connector for OpenOffice - Erst-Zugriff ist extrem langsam
- Index(es):
Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.