Page 1 of 1

How to make visible that control ?

Posted: Tue Aug 23, 2016 10:11 am
by arfgh
I have a image control that i hide from design time.
With basic i want to make it visible, and it isnt working. But works the reverse, from visible in design time to be hidden from basic.

why ?

Code: Select all

oForm = Event.Source.Model.Parent
   oImg = oForm.getByName("ImagePrev")
   thiscomponent.currentcontroller.getcontrol(oImg).setVisible(true)

help, thx in advance

Re: How to make visible that control ?

Posted: Mon Aug 29, 2016 12:22 pm
by Zizi64
Can you upload your example ODF file (with the macro code and the control) here?

Re: How to make visible that control ?

Posted: Mon Sep 12, 2016 12:09 pm
by Davte
Have you tried

Code: Select all

thiscomponent.currentcontroller.getcontrol(oImg).EnableVisible = True
? As Zizi64 said, a more detailed example may be useful.