In Macros, how to specify position of Dialog when it is loaded?
When loading a Dialog from a Macro, using oDlg.setVisible(true) or oDlg.Execute(), is it possible to specify the position where it will open? Either absolute with respect to Desktop or relative with respect to the LibreOffice window.
(I think, in OpenOffice, there is a method setPositionSize. This gives "BASIC runtime error, '423'" in LO. Is there an equivalent available in LO?)
Sample Calc file with macro and dialog.
Please upload you sample file/macro code here.
As requested, sample Calc file (with macro code and dialog --- the code is quite long for a complicated process...) and screenshots of how dialog appears by default and what is required, have been uploaded by editing the original question. Thanks for the quick response.
I just X-rayed the oDlg object in your code. It has not any method named setPositionSize() but it has setPosSize() method. It not throw error message, but it work a littlebit strangelly...
I suggest you to install and use the Xraytool. Then you will able to list all of the existing properties and methods of the programming objects...