On Tue, 08 May 2007 19:17:08 +0200
Patrick Chevalley <[EMAIL PROTECTED]> wrote:
> This patch add support for the small OK button that appear in the top
> menu when a form borderstyle is bsDialog. This work as documented,
> this button send WN_COMMAND with IDOK.
>
> The patch directly set ModalResult to mrOK on this event, I am not
> sure if this is the right way to do or if a LCL message must be
> raised for that?
I'm not sure. No other widget set supports forms with Ok buttons. Only
close buttons. That's why everyone puts an OK-TButton on every
dialog.
> Anyway it work and we can now close a modal form or a showmessage
> with this OK button.
How does the wince intf know, that the LCL form supports a Result
of mrOK?
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives