Feature request: make it possible to add controls to MessageDlg()
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
OK, I'm not quite sure I am supposed to post this here, but on the Lazarus forum (http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=3325) I was asked to make it a bug report.
In Lazarus it does not seem to be possible to add controls (like for instance a TCheckBox) to a MessageDlg().
(In Delphi this can be achived using the CreateMessageDialog() function, wich returns a TForm, so one can place any control on it's form.
This is especially helpfull if one wants to implement the "Do not show this dialog again" feauture.
(See an exemple at http://i25.photobucket.com/albums/c74/Talent111/devel/messagedlg_with_checkbox.png to see what I mean.)
Of course one could write a custom dialog form for this, but it seems rather silly to reproduce all the math for placing buttons etc on it, to make it work like the MessageDlg() function.
The way dialogs.pp is made now, it seems one is not able to access any of the controls on the MessageDlg() form (someone pointed out to me that it is not actually a TForm?).
The fact that in Lazarus this cannot be achieved (correct me if I am wrong please) also breaks compatibility with Delphi in my view (although of course this is not holy ...)
Keep up the good work!
Bart
Mantis conversion info:
- Mantis ID: 8186
- OS: WinMe
- OS Build: MS
- Platform: i386
- Version: 0.9.20
- Fixed in version: 0.9.26.2
- Fixed in revision: 18142 (#0ed0c4a0)
- Target version: 0.9.28