Juha
d784606f77
LCL: Fix deprecation warnings. Issue #40918 , patch by Don Siders.
2024-04-26 00:59:26 +03:00
Bart
ca9f504a0d
LCLIntf: small optimizations to LParamExtractLoHiWord and LParamHiWord as suggested by Maxim.
2023-08-27 22:23:12 +02:00
Bart
b7d3481248
TaskDialog: TLCLTaskDialog:start implementing message TDM_UPDATE_ELEMENT_TEXT.
...
For now the new text must not bi higher than the old text, otherwise the text will be cut off.
2023-08-27 13:43:23 +02:00
Bart
39c979d5b9
TaskDialog: TLCLTaskDialog: implement message handlers for:
...
- TDM_CLICK_BUTTON
- TDM_CLICK_RADIO_BUTTON
- TDM_CLICK_VERIFICATION
- TDM_ENABLE_BUTTON
- TDM_ENABLE_RADIO_BUTTON
2023-08-27 12:43:38 +02:00
Bart
42bcacac19
TTaskDialog: fix compilation on non-Windows 64-bit targets (lParamlo and lParamhi not defined there).
2023-08-26 18:58:49 +02:00
Bart
5aab1a7b18
TTaskDialog: Start implement TTaskDialog.ProgressBar for emulated dialog: Range, Position and Style.
2023-08-26 13:20:42 +02:00
Bart
a397741a99
TTaskDialog: Start implementing TTaskDialog.ProgressBar for emulated dialog.
2023-08-25 19:12:26 +02:00
Bart
cf5777a164
TTaskDialog: implement property Handle. Makes it possible to send messages to the dialog.
...
This is needed to implement e.g. progressbar and can be used to update on-the-fly the contents of the dialog.
2023-08-21 22:11:25 +02:00
Bart
e975ddddf5
TTaskDialog: implement flags tfUseHIconMain and tfUseHIconFooter for emulated dialog as well.
...
Resolves issue #40449 .
2023-08-20 14:29:25 +02:00
Bart
8012169318
TaskDialog: TLCLTaskDialog and Win32 WS: remove type definitions (and conversion routines) that were copied from the old LCLTaskDialog unit. Part 2.
2023-08-18 17:57:18 +02:00
Bart
17bf02baad
TaskDialog: TLCLTaskDialog and Win32 WS: remove type definitions (and conversion routines) that were copied from the old LCLTaskDialog unit.
2023-08-18 17:55:15 +02:00
Bart
07f5fca767
TaskDialog: TLCLTaskDialog: use resourcestring for default Expand/Collapse buttons.
2023-08-17 17:20:07 +02:00
Bart
898c45597a
TaskDialog: TLCLTaskDialog: remove custom translate function.
...
It was inherited from the now deprecated LCLTaskDialog unit and is called upon resource strings.
This is not the "normal" way of translating resource strings: users should use the translation unit for that.
2023-08-17 17:12:57 +02:00
Bart
8fab0d8cde
TaskDialog: TLCLTaskDialog:
...
- fix crash if MainIcon = tdiNone
- fix left-aligning ExpandedText in footer area if FooterIcon = tdiNone
- remove unused parameter from method declaration.
2023-08-17 16:53:55 +02:00
Bart
925b576e48
TaskDialog: TLCLTaskDialog: implement Expand/Collapse. Resolves issues ##31397 and ##31396.
2023-08-16 23:39:04 +02:00
Bart
95ebf74b26
TaskDialog: TLCLTaskDialog: add license info and general comment explaining what the aim of the unit is.
2023-08-16 11:03:57 +02:00
Bart
9762393535
TaskDialog: TLCLTaskDialog:
...
- less magic numbers
- make GlobalLeftMargin a global vraible for the form (-> less params for some methods)
- calculate buttonheights, margins and spacings just once
- some comments
2023-08-14 22:45:31 +02:00
Bart
1ca27c4fa5
TaskDialog: TLCLTaskDialog: place controls on 3 different panels. This will make it easier to move the controls
...
when the dialog gets expanded or collapsed (which has yet to be implemented).
2023-08-12 11:45:56 +02:00
Bart
91052758c8
TaskDialog: fix typo in variable/propertyname (collaps -> collapse), as pointed out by Maxim.
2023-08-09 23:00:40 +02:00
Bart
321020750e
TaskDialog: TLCLTaskDialog:
...
- trying to simplify laying out the controls.
- use more meaningfull variable and constant names.
- cut down on "magic numbers".
- try to use the same left margins everywhere (ToDo: right margins).
- simplify calculation the global margins: now only depends on tfEmulateClassicStyle, not on presence of an icon.
- use a slightly smaller left margin for not tfEmulateClassicStyle (16 instead of 24), looks a bit better when compared to native Vista+ dialog.
- more factoring out.
- as a byproduct: resolves issue #40437 .
- less debug output.
2023-08-09 13:39:18 +02:00
Bart
4a98bd92be
TaskDialog: TLCLTaskDialog: right align (Simple)Query with CommandLinkButtons (if these are present).
2023-08-08 23:22:56 +02:00
Bart
d1ac727ad0
TaskDialog: work in progress on expanding/collapsing the emulated dialog.
2023-08-08 18:28:45 +02:00
Bart
70b158940e
TaskDialog: implement OnNavigated (native Windows Vista+ only) and OnHelp.
...
While Delphi has DoOnHelp protected method, it seems they do not have OnHelp (GOKY).
2023-08-08 18:07:06 +02:00
Bart
892cf32728
TaskDialog: implement property CollapsButtonCaption.
...
Delphi does not have this, but the Windows TaskDialogIndirect API has it.
It controls the text next to the Expand/Collaps button if the dialog is in expanded state.
2023-08-07 22:05:30 +02:00
Bart
04df5e253a
TaskDialog: TLCLTaskDialog: start implementing an Expand/UnExand button: not functional yet.
2023-08-07 19:45:32 +02:00
Bart
8e0fb1875f
TaskDialog: LCLTaskDialog: remove debug statement.
2023-08-07 18:39:25 +02:00
mattias
d78d004b93
lcl: TLCLTaskDialog: do not inherit csdesigning, disable autosizing during setup, less hints
2023-08-07 10:27:09 +02:00
Bart
b64a1b1fe8
TaskDialog: LCLTaskDialog: some more debugln's for issue #40425 .
2023-08-05 23:56:37 +02:00
Bart
aa1e7fa738
TaskDialog: LCLTaskDialog: cleanup: remove disabled/non-functional code.
2023-08-03 23:13:34 +02:00
Bart
64adc6945d
TaskDialog: remove comment in TLCTaskDialog.AddLable: this was apparently fixed in commit 05555c84
.
2023-08-03 01:15:46 +02:00
Bart
e06c2e9831
TaskDialog: add debugln statements in TLCTaskDialog.AddLable to investigate issue #40425 .
2023-08-03 00:54:08 +02:00
Bart
9ff95ce2a6
TaskDialog: left-align main icon, footer icon and checkbox in emulated taskdialog.
2023-08-03 00:16:46 +02:00
Bart
a46e62000d
TaskDialog: fix setting focus when tfQueryFocused is set.
...
Give some varibales a mor meningfull name and update some comments regarding those.
2023-08-02 18:00:12 +02:00
Bart
b5f0aca3ea
TaskDialog: use DoOnXXX methods to call the event handlers.
...
Also rename some methods of LCLTaskDialog for a bit more consistency.
2023-08-01 16:39:53 +02:00
Bart
d31e76a1f6
TaskDialog: implement OnRadioButtonClicked event.
2023-08-01 15:54:34 +02:00
Bart
70a178c88e
TaskDialog: add OnTimer event.
2023-08-01 11:44:25 +02:00
Bart
5ed01b1884
TaskDialog: TLCLTaskDialog: fix calculation of height of labels. Issue #40421 .
2023-07-31 23:22:59 +02:00
Bart
4be2e3a717
TaskDialog: don't convert '\n' to LineFeed in captions:
...
Reason: a user might set a button or radiobutton caption to 'Save in "c:\new_folder\new.work"'
See also issue #38676
2023-07-31 18:53:33 +02:00
Bart
05c9e4aa76
TaskDialog: implement some Delphi compatible events:
...
- OnDialogConstructed
- OnDialogCreated
- OnDialogDestroyed
- OnVerificationClicked
Part of Issue #31399 .
2023-07-31 17:52:11 +02:00
Bart
0bed0f65a3
TLCLTaskDialog: fix setting default button for emulated taskdialog.
2023-07-31 16:44:01 +02:00
Bart
925ffd19ad
TLCLTaskDialog: remove unused variable and related comment.
2023-07-31 15:40:44 +02:00
Bart
c2e2a8e352
TLCLTaskDialog: refactor. No functional changes.
2023-07-31 15:17:17 +02:00
Bart
1aea03f44f
TaskDialog: implement CommandLinkHint for emulated TaskDialog as well. Resolves issue #31395 .
2023-07-31 14:57:19 +02:00
Bart
e259355d76
TTaskDialog: initial support for query capability (combobox or single line edit).
...
The implementation differs from the one in (now deprecated) LCLTaskDialog:
- the type of query is controlled by flags only (which are mutually exclusive)
- for single line edit, you can set passwordchar
- intial value of single line query has no influence on combobox
- initial value of combobox is controlled by integer value, not by text
2023-07-27 00:05:09 +02:00
Bart
45b149e0ea
TaskDlgEmulation: cleanup and cosemtic (no functional changes):
...
- remove unused code
- consistent indenting and spacing (or at least I tried)
2023-07-24 22:38:22 +02:00
Bart
e1d2db658f
Refactoring TTaskDialog: remove hack of exposing TCustomTaskDialog.FWidth. It was unneccessary to begin with...
2023-07-24 11:12:55 +02:00
Bart
b7cc27d3a5
Refactoring TTaskDialog:
...
- TWSTaskDialog.Execute: Don't cast ADlg to TTaskDialog.
- Adapt signature of function ExecuteLCLTaskDialog accordingly.
- Less debug output
2023-07-24 11:06:22 +02:00
Bart
c343cfe0d3
Refactoring TTaskDialog: remove some comments from TaskDialogEmulation unit.
2023-07-24 11:00:52 +02:00
Bart
92f83f8b59
Refactoring TTaskDialog:
...
- first attempt to get Win32 WS code working (currently littered with writeln() statements, so crashes if no console!)
- fix ModalResult in OnButtonClicked for emulated dialog.
2023-07-24 01:08:33 +02:00
Bart
85c1fff32d
Refactoring TTaskDialog: move (and rename) constants for first radio/button index to Dialogs unit and use them there as well.
2023-07-22 15:55:17 +02:00