TFileDialog.Handle is 0 on MAC (Carbon)
Original Reporter info from Mantis: torstenchr
-
Reporter name: Torsten Bonde Christiansen
Original Reporter info from Mantis: torstenchr
- Reporter name: Torsten Bonde Christiansen
Description:
On MAC (Carbon) it is no possible to access the NavDialogRef if one need to create Mac specific code.
On Linux (Gtk2) and Windows (Win32/64) the .Handle of TFileDialog is set respectively.
Setting (Handle <> 0) has a single sideeffect: The callback function 'NavDialogCallback' sets FilterIndex directly (which in turn check for (Handle = 0).
Instead this callback should use TFileDialog.IntfFileTypeChanged. This is the same behaviour as Win32 & GTK widgetsets.
Steps to reproduce:
N/A
Additional information:
I have created a small patch,which sets the handle correctly on TFileDialog and correctly calls IntfFileTypeChanged.
Mantis conversion info:
- Mantis ID: 27041
- OS: OS X
- OS Build: 10.9.5
- Build: 46846
- Platform: x86_64
- Version: 1.2.7 (SVN)
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46850 (#b661cc76)
- Monitored by: » torstenchr (Torsten Bonde Christiansen)
- Target version: 1.4