What is the difference between the new TFileOpenDialog and the old TOpenDialog?
In my computer (Win 7/DXE), when I run the code, the dialogs look the same.
TOpenDialog
executes TFileOpenDialog
when the following conditions are met:
UseLatestCommonDialogs
is true (which is the default)OnIncludeItem
, OnClose
or OnShow
events are setSo while still using TOpenDialog
on your system you may likely end up automagically executing TFileOpenDialog
in most cases, which explains why they are looking the same for you.
Remark: TFileOpenDialog
does not fall back on older Windows systems - it just raises an exception. On the opposite, TOpenDialog
does some sort of "fall forward".