How to make visible that control ?

Keyboard macros or custom scripts

How to make visible that control ?

Postby arfgh » Tue Aug 23, 2016 10:11 am

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   Expand viewCollapse view
oForm = Event.Source.Model.Parent
   oImg = oForm.getByName("ImagePrev")
   thiscomponent.currentcontroller.getcontrol(oImg).setVisible(true)



help, thx in advance
OpenOffice last version - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 380
Joined: Tue Mar 05, 2013 6:44 pm

Re: How to make visible that control ?

Postby Zizi64 » Mon Aug 29, 2016 12:22 pm

Can you upload your example ODF file (with the macro code and the control) here?
Tibor Kovacs, Hungary; LO4.4.7, LO5.4.7 on Win7x64Prof.
PortableApps, winPenPack: LO3.3.0-LO6.1.0 and AOO4.1.5
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 6982
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How to make visible that control ?

Postby Davte » Mon Sep 12, 2016 12:09 pm

Have you tried
Code: Select all   Expand viewCollapse view
thiscomponent.currentcontroller.getcontrol(oImg).EnableVisible = True
? As Zizi64 said, a more detailed example may be useful.
OpenOffice 4.1.2 on Windows 10
Davte
 
Posts: 16
Joined: Sat Sep 10, 2016 11:29 pm
Location: Italy


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 5 guests