von frog777 » Do, 28.11.2013 16:52
Hallo Forum,
Ich habe eine Calc Dialog Frage:
ist es möglich die "Elemente" (Textfelder, Labels, ect) eines Dialoges abzufragen?
Für ein Formular kann ich auf diese weise:
Code: Alles auswählen
oForm = thisComponent.CurrentController.ActiveSheet.Drawpage.Forms.getbyname("frmTest")
For I = 0 To oForm.Count - 1
Form = oForm.GetbyIndex(I)
If Form.HasByName("MyListBox") Then
Ctl = Form.GetbyName("MyListBox")
Exit Function
End If
Next
besten dank für eure hilfe.
Markus
Hallo Forum,
Ich habe eine Calc Dialog Frage:
ist es möglich die "Elemente" (Textfelder, Labels, ect) eines Dialoges abzufragen?
Für ein Formular kann ich auf diese weise:
[code]
oForm = thisComponent.CurrentController.ActiveSheet.Drawpage.Forms.getbyname("frmTest")
For I = 0 To oForm.Count - 1
Form = oForm.GetbyIndex(I)
If Form.HasByName("MyListBox") Then
Ctl = Form.GetbyName("MyListBox")
Exit Function
End If
Next
[/code]
besten dank für eure hilfe.
Markus