OpenFileDialog

MacOS 10.15.7
Last Xojo
OpenFileDialog opens at the same place no matter the left, top values.

Code copied from Documentation, except the left and top values that are text fields.
Is there a way to control where the dialog will open?.

Var dlg As OpenFileDialog
Var f As FolderItem
dlg = New OpenFileDialog
dlg.ActionButtonCaption = "Action Button"
dlg.CancelButtonCaption = "Cancel Button"
dlg.SuggestedFileName = "Suggested Filename"
dlg.Title = "Title bar text"
dlg.PromptText = "Prompt Text"

// dlg.Left = 50
// dlg.Top = 50

// these values do nothing
dlg.Left = TextFieldLeft.Text.ToInteger
dlg.Top = TextFieldTop.Text.ToInteger

f = dlg.ShowModal

https://www.dropbox.com/scl/fi/8eaitohxnq96z29vyp1w9/res.xojo_binary_project.zip?rlkey=f9coy8oi36x7k378bnmut3oup&dl=0

Tested additional environments and it did not work in these:

  • DesktopAPI project as provided in Big Sur
  • DesktopAPI project as provided in Windows 11
  • API 1.0 project on Big Sur with hard-coded top/left

Things did work in these scenarios:
- API 1.0 on Windows 11 with hard-coded top/left
- API 2.0 on Windows 11 with hard-coded top/left

Update: The success reports were incorrect.

I don’t believe that Apple lets you decide any more.

If it’s not supported in either Mac or Windows anymore (what about Linux?), then these properties should probably be deprecated in Xojo :man_shrugging: