own MsgDlgButtons lazarus lazarus / 34-Windows ---------------------------------------------------------------------- mesiarm · 2013-09-09 14:06 Am I able to extend somehow TMsgDlgButtons type to use own buttons in MessageDlg? ---------------------------------------------------------------------- Bart · 2013-09-10 09:42 Basically no, since ate least on modern Widows (Vista and up) the dialog is a native Windows dialog, and it only accepts the values that Windows knows. You could extend the classic dialog (the one Lazarus builds itself, see CreateMessageDialog() function), but not without changing the LCL. Bart ---------------------------------------------------------------------- mesiarm · 2013-09-10 20:40 hm maybe using modal form will be better. I will try it. ---------------------------------------------------------------------- Martin_fr · 2013-09-10 21:21 But you can do Code: [Select]  QuestionDlg('hello', 'welcome', mtInformation, [mbok, 'test', mbCancel], 0); 2 buttons 1) test  (will return the value of ok) 2) Cancel