LCLTaskDialog removed ? Does TTaskDialog still work on W2k? lazarus / 31-LCL ---------------------------------------------------------------------- jamie · 2023-07-24 21:19 There is or was a emulation for a Ttaskdialog for OS < Vista and other targets. I saw today that LCLTaskDialog I think it was, was removed. Does this mean apps will no longer support < Vista ? We still use W2k and XP on industrial machines at work! ---------------------------------------------------------------------- dsiders · 2023-07-25 00:19 Quote from: jamie on July 24, 2023, 11:19:39 pmThere is or was a emulation for a Ttaskdialog for OS < Vista and other targets. I saw today that LCLTaskDialog I think it was, was removed. Removed? No. Deprecated? Yes. My understanding of the change is: TTaskDialog becomes the mechanism to use... with emulated dialogs controlled by its option flags or platform support. The emulation functionality is moved to the widgetset classes and a new unit with the dialog/code used for the non-native implementation. The intention is to remove lcltaskdialog in 4.0 though. But I am often wrong... ---------------------------------------------------------------------- AlexTP · 2023-07-25 07:58 +1 to keep Win2K/ WinXP implementaion! ---------------------------------------------------------------------- Martin_fr · 2023-07-25 10:23 It still works... That is why there is an emulated version. The old code exposed 2 different TTaskDialog to the enduser..... afaik/not checked in detail: Now you can just access one. And you can pass a flag, if you want it emulated. (Or it will be emulated if your OS doesn't have it) ---------------------------------------------------------------------- Bart · 2023-07-25 21:11 All the emulation code has been moved to a new TaskDlgEmulation unit. As before, this is called from Dialogs.TTaskDialog. However this is done through the widgetset code, so it's not immediately obvious. The win32 widgetset code will call the native Vista+ TaskDialogIndirect if that is available, otherwise it will fallback to the emulated dialog. And, as before, if on Vista+ the call to TaskDialogIndirect fails for some reason, it also will fallback to the emulated dialog. In essence, for the programmer, the behaviour of Dialogs.TTaskDialog should have remained the same as before. The TTaskDialog implementation in the now deprecated unit LCLTaskDialog had some add-ons (it allowed a combobox in the dialog), which I'm going to add to the new emulated dialog as well. So, Dialogs.TTaskDialog will be extended with that capability in the (near) future. The now deprecated LCLTaskDialog unit will not be removed until (I guess) at least Lazarus version 5.0. The emulated dialog will only work if instantiated from a TTaskDialog. Bart ---------------------------------------------------------------------- noexpert · 2023-07-26 05:15 Thanks for your work on this. I noticed while testing RC1 that if a "Buttons" item is added there are properties for Caption, Default and ModalResult, but missing (as yet) is one for adding a hint - "CommandLinkHint" in Delphi. ---------------------------------------------------------------------- Bart · 2023-07-26 11:14 You can add a feature request in the bugtracker. Bart