I have a function that loads up references to GUI objects in a LibreOffice Base Form, and I was wondering which of these events (on the form?) I should attach it to if the rest of the code on the page depends upon references to these GUI objects.
' This method gets run when the page is loaded.
Sub Init()
Doc = ThisComponent
TheForm = Doc.DrawPage.Forms.GetByName("Form")
CbBoxFeature = TheForm.getByName("CbBoxFeature")
CbBoxDESPName = TheForm.getByName("CbBoxDESPName")
cbUpdateToState = TheForm.getByName("cbUpdateToState")
txtDetails = TheForm.getByName("txtDetails")
lblStatus = TheForm.getByName("lblStatus")
End Sub
Here is my form loading code.