How hide group and not single pictures ? (screen recording 2minutes)

How hide group and not single pictures ? (screen recording)

Is the same question? How hide pictures on my xls/calc with a checkbox?

edited : No, your link it’s two part, checkbox + group hide with no program writed, so for my second post, i request just command for hide a group, and show program coded, so your link is obsolete :wink:

For example:

Sub chk_visible_changed(event)
	names = Array("plus", "close", "home")
	visible = False
	If event.Source.State = 1 Then
		visible = True
	End If
		
	dp = ThisComponent.CurrentController.ActiveSheet.DrawPage
	For i = 0 To dp.Count - 1
		img = dp.getByIndex(i)
		For Each n In names
			If img.Name = n Then
				img.visible = visible
				Exit For
			End If
		Next 
	Next i
	
End Sub

Peek 2022-02-23 11-50

ask_example.ods (20.4 KB)

3 Likes

thanks :DDD