I wrote a patch to implement using the win32 messagebox for the lazarus
showmessage and messagedlg function.
http://www.freepascal.org/mantis/view.php?id=1062
CUT
line 1, 2,4 use native message dialog, line 3 and 5 uses the LCL message
dialog, because win32 doesn't have that combination of buttons.
For some dialogs we still will be using the LCL fallback, so it won't look
consistent. What is your opinion? Should I apply this patch?
My opinion: I would leave MessageDlg as it is: in delphi also it is handled
by vcl, with bitbtns instead of buttons (and button texts not translated)
and so on.
In delphi, to use real win32 messagebox, I used to call
Application.MessageBox: in lazarus this leads to lcl windows instead of
"native" ones.
So, I would use Application.MessageBox for widgetset-native messages, and
MessageDlg for lcl windows (note: IIRC constants to be passed to
Application.MessageBox, like MB_OK and MB_ICONINFORMATION, are not declared
in LCL but only in windows unit, even if it is legal to
call Application:Messagebox in other widgetsets...)
This is to be consistent with delphi: personally, I hate bitbtns and "non
native" things so I'll prefere to always have native-widgetset dialogs :)
bye,
Giulio
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives