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")

help, thx in advance
OpenOffice last version - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
Posts: 429
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, LO6.1.5 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.1 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
Posts: 7767
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
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 2 guests