I would like to remove the close button on the window of a Base Form
. This was trivial in the other desktop database solution, having trouble figuring it out here. When I close a form I want to be sure to run a macro, but unfortunately none of the Form
events in LO appear to be triggered when you hit the close
button in the window. Thus, I would like to disable the close
button, which in the other desktop database solution was known as the ControlBox
I think. Using Windows 7, LO 4.4.
I know how to call the Form
window
object, but I cannot see the option to disable the ControlBox
CloseButton
or anything like that. Here is the hierarchy to call the Form
Window
:
rootDoc = ThisComponent.parent
ctrllr = rootDoc.getCurrentController
fr = ctrllr.Frame
cmpt = fr.ContainerWindow
I cannot see an appropriate property or method using dbg_methods
or dbg_properties
.
Does anyone know how to disable the Close
button?
Thx.