When i am pressing button in order to select diretory. it pops up beneath diredtory line on the form. Parts of the window is outside screen. I would like to position window on center screen.
Are you using the latest version of the component? It will always position itself near the edit control but keep in the screen.
version used 1.3.2.8
The latest version is v1.3.3.1
Please first test this with this latest version.
Bottom part is still outside screen with version 1.3.3.1
We've investigated this deeper and this appears to be a shortcoming in the Windows APIs used to display the dialog. Set AllowNewFolder = false should workaround this Windows API shortcoming.
Using 1.7.2.2 it doesn’t matter whether AllowNewFolder is enabled or not. The OK/Cancel buttons are off the lower part of the screen. It would be helpful if you allow a double-click to select the folder since typically you are using a mouse or tablet to browse. If the OK/Cancel is off the screen, I have to either drag the window up to click OK, or take my hand off the mouse to hit the Enter key.
Another suggestion would be to have a Position property to center the dialog to the owner form.
We’ve investigated this again and the shortcoming of the Windows API SHGetPathFromIDList seems to be to determine the dialog size at the time it is being displayed. Without the ability to correctly determine the dialog size, it is not possible to position it according to screen size.
So, far, we have unfortunately not found a reliable workaround for these shortcomings.