I would like the dialog to run in a process separate from LO not just for the ability to interact with either as needed but also because a modal dialog dims the sheets, making them stand out less to the eye.
I imagine its a good bit more complicated than what I have so far:
sub appmain
dim mainlib as object, maindlg as object
rem container for mainlib is same document where this code lives
dialoglibraries.loadlibrary("mainlib")
mainlib = dialoglibraries.getbyname("mainlib")
maindlg = createunodialog(mainlib.getbyname("thedialog"))
rem obey certain visual properties set in dialog designer
maindlg.getpeer().setproperty("NativeWidgetLook", false)
maindlg.execute()
end sub
I have used the desktop property before on a dialog that was created in running code but i dont know how to adopt that to this situation.