[Solved] Remove control from dialog at runtime

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
gurxsa
Posts: 3
Joined: Thu Nov 24, 2016 7:14 pm

[Solved] Remove control from dialog at runtime

Post by gurxsa »

Hello to all,
i am writing a calc's macro which use a dialog box.
The macro can add/hide/remove controls in relation to some values present in the sheet.
I'm having trouble looking how to remove/delete a control.
Can someone help me?
Many thanks in advance.
Last edited by Hagar Delest on Sun Oct 17, 2021 9:09 pm, edited 1 time in total.
Reason: Tagged [Solved].
LibreOffice 7.2.0 on Windows 10 64bits
JeJe
Volunteer
Posts: 2784
Joined: Wed Mar 09, 2016 2:40 pm

Re: Remove control from dialog at runtime

Post by JeJe »

Code: Select all


dlg.getcontrol(controlname).dispose
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
gurxsa
Posts: 3
Joined: Thu Nov 24, 2016 7:14 pm

Re: [SOLVED] Remove control from dialog at runtime

Post by gurxsa »

Many thanks JeJe
LibreOffice 7.2.0 on Windows 10 64bits
Post Reply