| View previous topic :: View next topic |
| Author |
Message |
flex OOo Enthusiast


Joined: 06 Jul 2004 Posts: 122 Location: Vienna | Austria
|
Posted: Tue Jul 06, 2004 11:40 pm Post subject: getFocus - where is the mistake |
|
|
I want the TextBox 'txtpassword' to get the Focus, but it does not work.
why?
Dim ochkpassword as Object
Dim otxtpassword as Object
ochkpassword = odlgoptions.getControl("chkpassword")
otxtpassword = odlgoptions.getControl("txtpassword")
If ochkpassword.State = 1 then
otxtpassword.Model.Enabled = True
otxtpassword.getFocus() 'this line does not work!
else
otxtpassword.Model.Enabled = False
end if |
|
| Back to top |
|
 |
verflixtnix Power User

Joined: 11 May 2004 Posts: 79 Location: Germany, Hamburg
|
Posted: Wed Jul 07, 2004 12:45 am Post subject: |
|
|
Am I'm right, that you want to set the focus?
otxtpassword.setFocus() _________________ Jan Lüdtke
SuseLinux9.0 - OOo1.1.2 / Win2000 - OOo1.1.2 |
|
| Back to top |
|
 |
flex OOo Enthusiast


Joined: 06 Jul 2004 Posts: 122 Location: Vienna | Austria
|
Posted: Wed Jul 07, 2004 12:48 am Post subject: |
|
|
yeah, now it works.
otxtpassword.setFocus() |
|
| Back to top |
|
 |
|