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

Joined: 19 Sep 2009 Posts: 119
|
Posted: Sat May 26, 2012 3:36 pm Post subject: Cursor is not in field (dialog in Calc, BASIC) |
|
|
Hello,
I have this code:
| Code: |
SifraArtikla = prozorRACUNI.getControl("NumericField1")
NazivArtikla = prozorRACUNI.getControl("TextField1")
Kolicina = prozorRACUNI.getControl("NumericField2")
MPcena = prozorRACUNI.getControl("NumericField3")
OsnovicaZaPDV = prozorRACUNI.getControl("NumericField8")
StopaPDV = prozorRACUNI.getControl("NumericField9")
ObracunatPDV = prozorRACUNI.getControl("NumericField10")
MPvrednost = prozorRACUNI.getControl("NumericField12")
Lager = prozorRACUNI.getControl("NumericField13")
TipArtikla = prozorRACUNI.getControl("TextField3")
NazivArtikla.getModel().SetPropertyToDefault("Text")
Kolicina.getModel().SetPropertyToDefault("Value")
MPcena.getModel().SetPropertyToDefault("Value")
OsnovicaZaPDV.getModel().SetPropertyToDefault("Value")
StopaPDV.getModel().SetPropertyToDefault("Value")
ObracunatPDV.getModel().SetPropertyToDefault("Value")
MPvrednost.getModel().SetPropertyToDefault("Value")
TipArtikla.getModel().SetPropertyToDefault("Text")
Lager.getModel().SetPropertyToDefault("Value")
SifraArtikla.getModel().SetPropertyToDefault("Value")
SifraArtikla.setFocus() ' <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< this line is important
|
My problem is that cursor is not in field SifraArtikla, in my dialog (in Calc) after this code. When I again push the same code, then cursor is there. Can somebody help me about this?
I am using Oo 3.3 Win. _________________ OpenOffice 3.3.0, Windows |
|
| Back to top |
|
 |
patel Power User

Joined: 14 Apr 2012 Posts: 54 Location: Italy
|
Posted: Sun May 27, 2012 6:56 am Post subject: |
|
|
can you attach the file ? _________________ If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button). |
|
| Back to top |
|
 |
sevalav OOo Enthusiast

Joined: 19 Sep 2009 Posts: 119
|
Posted: Sun May 27, 2012 1:06 pm Post subject: |
|
|
I think that in this forum we have not option to sent file. If I am wrong, tell me. _________________ OpenOffice 3.3.0, Windows |
|
| Back to top |
|
 |
sevalav OOo Enthusiast

Joined: 19 Sep 2009 Posts: 119
|
|
| Back to top |
|
 |
|