@LibreOfficiant and everyone
I found another way to get the MultiPage control to use and work (also in older LibreOffice versions). I exported the dialog (.xdl) and manually removed all the controls set on the Pages and then imported the .xdl to a new project. So now I can add controls on the pages on the fly, as well as set event listeners/handlers to them. To make this work don’t set any event’s on any possible controls set onto your Dialog in design mode, otherwise events will confuse the events that are set on the fly and vice versa.
I can take advantage of the location maps I created to the controllers in my previous project (to cheat MultiPage effect), now without need to hide or disable properties of any control.
Instead of function use sub with these:
Sub TopListen_WindowClosing
Continue=false
ThisComponent.setModified(False)
End Sub
Sub TopListen_windowOpened
End Sub
Sub TopListen_windowClosed
End Sub
Sub TopListen_windowMinimized
End Sub
Sub TopListen_windowNormalized
End Sub
Sub TopListen_windowActivated
End Sub
Sub TopListen_windowDeactivated
End Sub
Sub TopListen_disposing
End Sub