Commit Graph

129 Commits

Author SHA1 Message Date
juha
e2ee2d39ed LCL-Win32: Don't move a calling form with OldStyleDialog dialogs. Issue #37821, patch from Jamie Philbrook.
git-svn-id: trunk@63929 -
2020-09-27 22:14:53 +00:00
juha
2722047c4a LCL-Win32: Handle "default" values for font properties correctly. Patch from Serge Anvarov.
git-svn-id: trunk@62369 -
2019-12-09 22:02:00 +00:00
juha
a897a24acc LCL-Win32: Add support for ofForceShowHidden flag in dialog options. Issue #35452, patch from Serge Anvarov.
git-svn-id: trunk@61113 -
2019-05-03 15:07:22 +00:00
juha
ce916d287c LazUtils: Rename unit ModalResultDef to a Delphi compatible UITypes. Add Message dialog related stuff.
git-svn-id: trunk@58227 -
2018-06-11 10:51:11 +00:00
juha
5f57884ed1 LCL,LazUtils: Move ModalResult and the mr... consts to a new unit in LazUtils. They are used in non-GUI programs, too.
git-svn-id: trunk@58205 -
2018-06-09 14:39:49 +00:00
mattias
f2ae3c60c6 lcl: win32: use IsFontNameDefault
git-svn-id: trunk@56925 -
2018-01-02 11:38:49 +00:00
michl
f7f4950c33 LCL: Win32: Font dialog initializing for default values. Issue #32894. Patch by C Western
git-svn-id: trunk@56879 -
2017-12-30 18:43:08 +00:00
ondrej
48e99ce2b5 revert r55562 (FPC r36770 #0c274a2e41 was reverted as well)
git-svn-id: trunk@55601 -
2017-07-29 20:44:29 +00:00
ondrej
e24cf14e6f win32: fix compilation with FPC 3.1.1 r36770 #0c274a2e41. Issue #28760
git-svn-id: trunk@55562 -
2017-07-23 16:22:45 +00:00
bart
2e4aa22e32 Win32: TFontDialog: implement retrieving font settings before calling OnApplyClicked. Resolves Issue #0028636.
git-svn-id: trunk@52859 -
2016-08-21 23:15:42 +00:00
bart
84f90e1ba1 Win32: TFontDialog: start implementing calling OnApplyClicked. Part of Issue #0028636.
git-svn-id: trunk@52854 -
2016-08-21 17:25:37 +00:00
bart
4213e0848c Dialogs:
- implement a mechanisme to query the widgetset how and when to handle DoShow, DoCanClose and DoClose.
- implement QueryWSEventCapabilities for Win32 widgetset

git-svn-id: trunk@52850 -
2016-08-21 11:45:58 +00:00
bart
cc041a51b2 Dialogs: fix several issues with OnShow/OnCanClose/OnClose events.
- fixes showing OnShow twice
- fixes not firing TSelectDirectoryDialog.OnClose on WinXP
- fixes wrong Sender in TFindDialog.OnShow
- fixes firing TFontDialog.OnShow after fom closes (Windows)
- fixes not firing OnShow and OnClose of TCalculatorDialog
- fixes wrong Sender in TCalendarDialog.OnShow and OnCanClose
- call DoXXX instead of OnXXX wherever possible
- more conditioal debug output
Resolves issue #0023065.
Partly resolves issue #0021163.

git-svn-id: trunk@52801 -
2016-08-13 18:05:25 +00:00
bart
12c717b835 Win32: less hints.
git-svn-id: trunk@52791 -
2016-08-08 12:32:55 +00:00
bart
99a55b4afc Win32: re-introduce DisableVistaDialogs define, so we can test XP dialogs on Vista and up.
git-svn-id: trunk@52790 -
2016-08-08 12:16:31 +00:00
bart
6b0c4428ec Dialogs: conditional debug output for TCommonDialog events
git-svn-id: trunk@52789 -
2016-08-08 12:13:43 +00:00
bart
6e5cf2da5a Dialogs:
1. Only call TFileDialog.OnCanClose if user did not cancel the dialog.
2. Fix dialog and application behaviour of setting CanClose to False in TFileDialog.OnCanClose.
Mostly resolves issue #0021147.

git-svn-id: trunk@52787 -
2016-08-07 18:39:35 +00:00
ondrej
ac2fa94876 win32: use ofEnableSizing to choose dialog kind when ofOldStyleDialog is used. Patch from Martok, issue #30406
git-svn-id: trunk@52741 -
2016-07-24 06:51:59 +00:00
bart
61f5442a15 Win32: fix error in TFontDialog if fdLimitSize is set. Issue #0030340. Patch by Rik van Kekem.
git-svn-id: trunk@52649 -
2016-07-08 12:41:00 +00:00
ondrej
79acb53c1d win32: call Application.ModalStarted/Finished in Save/RestoreApplicationState
git-svn-id: trunk@52299 -
2016-05-10 20:57:04 +00:00
ondrej
9c843a9ea8 win32: clean up
git-svn-id: trunk@51799 -
2016-03-02 06:41:52 +00:00
ondrej
f7158c1393 lcl: disable windows on system dialog execute
win32: fix parent window handle for system dialogs
Issue #28631

git-svn-id: trunk@51798 -
2016-03-02 05:45:52 +00:00
bart
19a27c5796 Win32: TWin32WSSelectDirectoryDialog: hide "create dir" button if not ofCreatePrompt in Options. Patch by Alexey Torgashin. Issue #0029724.
git-svn-id: trunk@51746 -
2016-02-28 16:57:17 +00:00
ondrej
b02d8d8be9 win32: use IFileDialog for TSelectDirectoryDialog. Issue #29736
git-svn-id: trunk@51715 -
2016-02-26 15:00:34 +00:00
ondrej
3a6697bc77 codetools, lazutils, win32: less hints
git-svn-id: trunk@50822 -
2015-12-15 16:27:39 +00:00
bart
157c7c738e Win32: Start removing Windows 9x specific code.
git-svn-id: trunk@50769 -
2015-12-13 16:28:05 +00:00
bart
0ef4cb9fff Win32: Remove the use of IfDef's for UseVistaDialogs. It has been defined for over 4 years now, without a mechanisme to undefine it.
git-svn-id: trunk@50522 -
2015-11-28 23:18:25 +00:00
bart
f82432a859 Win32: Remove the use of IfDef's for WindowsUnicodeSupport, since it does not make sense anymore (it is always defined).
git-svn-id: trunk@50515 -
2015-11-27 18:19:40 +00:00
juha
e685858274 LCL-Win32: Fix compilation when function wrappers in FileUtil are disabled (define NoLazUTF8Wrappers).
git-svn-id: trunk@49500 -
2015-07-05 14:43:58 +00:00
bart
a14e21882c Win32: handle ofDontAddToRecent option in TOpen/SaveDialog (Issue #0027682).
git-svn-id: trunk@49187 -
2015-05-27 10:27:23 +00:00
juha
653207f24f LCL-Win32: Initialize variables based on compiler warnings. Contains ToDo items.
git-svn-id: trunk@48479 -
2015-03-24 17:51:18 +00:00
mattias
695ac7c9e9 LCL: win32: use All files instead of All File Types, issue #27654
git-svn-id: trunk@48334 -
2015-03-14 09:12:14 +00:00
bart
53911c79b5 Win32: Use Vista dialogs independant from status of ThemesEnabled also for Open/SavePicturDialog. Issue #0026940.
git-svn-id: trunk@48301 -
2015-03-12 17:23:30 +00:00
bart
486842dc6d Win32: Use Vista dialogs independant from status of ThemesEnabled. Issue #0026940.
git-svn-id: trunk@48265 -
2015-03-11 16:44:29 +00:00
juha
abf9a845da Deprecate wrappers for LazUTF8 functions in LCLProc.
git-svn-id: trunk@47604 -
2015-02-06 18:25:31 +00:00
juha
43db31159c LCL-Win: Add DestroyHandle method for TWin32WSSaveDialog. Issue #23388, patch from lks.
git-svn-id: trunk@46248 -
2014-09-18 21:38:38 +00:00
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
bart
277b78225d Win32: Save CustomColors in TColorDialog. Fixes issue #0023960.
Patch by David Gray.

git-svn-id: trunk@40493 -
2013-03-06 11:39:48 +00:00
juha
0df6e1f978 LCL: use new Windows GUI for TSelectDirectoryDialog. Issue #23521, patch from Reinier Olislagers
git-svn-id: trunk@39620 -
2012-12-21 18:59:36 +00:00
juha
d55abf7f1d LCL WinVista: Fix setting TOpenDialog/TSaveDialog initialdir. Issue #20387, patch from Bart Broersma
git-svn-id: trunk@32654 -
2011-10-03 12:25:49 +00:00
vincents
efd27b4488 win32 interface: fix compilation on win64 by using the callback declaration from the windows unit, because the record declaration is used from the windows unit too. In fpc < 2.5.1 the windows unit still contains a bug and the callback from the commdlg is not type compatible.
git-svn-id: trunk@30897 -
2011-05-25 13:43:46 +00:00
paul
d9dfb7ca86 win32: fix win32dialogs compilation with recent fpc 2.5.1 on win64 platform (based on patch of Cyrax, issue #0019163)
git-svn-id: trunk@30301 -
2011-04-15 13:04:12 +00:00
paul
fb870600ff win32: get/restore active window before/after windows dialog showing
git-svn-id: trunk@30278 -
2011-04-13 07:10:43 +00:00
mattias
2829b842e8 LCL: small optimization
git-svn-id: trunk@29589 -
2011-02-17 10:07:01 +00:00
mattias
0e109ea1e1 fixed typos: usefull
git-svn-id: trunk@29446 -
2011-02-10 09:43:23 +00:00
paul
82b51df5c8 win32: use MainFormHandle in some places instead of MainForm.Handle
git-svn-id: trunk@29264 -
2011-01-31 08:45:57 +00:00
paul
d1e9b24dcf win32: force preview panel for TPictureSave(Open)Dialog
git-svn-id: trunk@28286 -
2010-11-17 07:51:14 +00:00
paul
05a43c2437 win32: ifdef all vista open/save dialog code
git-svn-id: trunk@28265 -
2010-11-16 07:10:46 +00:00
paul
bbd6520a72 win32: handle CanClose = False for cancel clicks in Vista dialogs
git-svn-id: trunk@28262 -
2010-11-16 02:38:52 +00:00
paul
d73133ed38 win32: properly implement SelectionChange event for vista dialogs
git-svn-id: trunk@28261 -
2010-11-16 02:23:28 +00:00