Hello wp, thank you so much for your idea to improve dialog 'TTaskDialog' with a property 'width'.
- I found no way to influence the width of the dialog. Is this possible?
It is prepared internally, but there is no property for it. Please make the following changes:
...
You will only be able to increase the width of the dialog, it will not be possible to shrink it.
To increase is absolutely enough, *if* the width of the message increases accordingly.
Will this be the case (on Windows and Linux)? Otherwise it would not help me...
Test the new property. It should work, but I would like to hear your feedback...
I will do this test, but give me some time for this. My newest Lazarus is 2.0.10 with FPC 3.2.0. I hope this is ok?
... before I commit these changes to Laz/main.
That would be great for the future.
From your screenshot I see that you seem to be on a Linux...
that's right
... on Linux where the emulated version of the original Windows TaskDialog is called.
I did not know of this before
On Windows, however, the main icon and title areas are hidden when the icon is tdiNone and the Text is empty. So, this seems to be a bug in the emulation in unit LCLTaskDialog. Please post a bug report.
I tested this on Win7 and (an older) Win10 (with Lazarus 2.0.10 / FPC 3.2.0), but in both cases I have the same output (huge wasted space, see new screenshot) as in Linux.
You will only be able to increase the width of the dialog, it will not be possible to shrink it.
This was my observation on Windows where the native TaskDialog is used. When I switch it to use the emulated dialog, however, I found that I can make the IDE non-responsive by making Width too small. Therefore, please make another change. Now open the file lcl/lcltaskdialog.pas. Search for if aWidth=0 (no spaces around "="!). Replace the entire "if" block by the following code:
OK.