I am using a file picker dialog in a few spreadsheet projects and I am trying to figure out how to resize the dialog in the macro that launches the file picker. I want to stored the size and position and every time that it gets called it should be resized and positioned according to the saved values. Attached is a sandbox file that I made to figure it out.
I am using a Window listener to do the resizing, but for some reason the FileDialog.Window property is not accessible. I figured out that if I add an Xray command above the .Window line then it works fine. I think it has to do with the Context but I don’t understand what to do different.
I am using LO v5 on a Linuz OS.
Can someone please provide pointers on this? I would really appreciate knowing why this attached file throws an error.
FilePicker Resizing.ods (10.1 KB)