von Maggus » Mi, 14.04.2010 13:29
Hallo,
leider funktioniert das so nicht:
Code: Alles auswählen
Sub ShowAll()
ActiveSheet = ThisComponent.CurrentController.ActiveSheet
oForm = ActiveSheet.Drawpage.Forms.getByIndex(0)
AllBoxes = oForm.Count
For i = 0 to AllBoxes -1
oControl = oForm.getByIndex(i)
If oControl.ClassID = 5 Then
oControl.isVisible = true
End If
Next
End Sub
Xray zeigt mir, dass es für oControl keine Methode/Property
isVisible gibt, aber gibt mir auch keine andere Möglichkeit Controls auszublenden. Wie geht es dann??
Gruß,
Hallo,
leider funktioniert das so nicht:
[code]
Sub ShowAll()
ActiveSheet = ThisComponent.CurrentController.ActiveSheet
oForm = ActiveSheet.Drawpage.Forms.getByIndex(0)
AllBoxes = oForm.Count
For i = 0 to AllBoxes -1
oControl = oForm.getByIndex(i)
If oControl.ClassID = 5 Then
oControl.isVisible = true
End If
Next
End Sub
[/code]
Xray zeigt mir, dass es für oControl keine Methode/Property [b]isVisible[/b] gibt, aber gibt mir auch keine andere Möglichkeit Controls auszublenden. Wie geht es dann??
Gruß,