why don't you use "Application.Terminate;"?


On 08/23/2009 04:21 PM, epergola wrote:
Thanks Henry.
But my main form is full screen: no title bar, no task bar.
I have a custom'Terminate' button that on click does this:
MainForm.Close.
I want the form to be closed (NOT appearing on the background), and the
Application
actually terminated 'destroyed' or 'killed'.
On the page you referred me to I found:
The "OK" button will send a WM_COMMAND message, which is handled on
wincecallback.inc, with wID=IDOK. There we respond by throwing a WM_CLOSE to
the form.

Ok, do you know then how can I programmatically send a WM_COMMAND and
'throw'
a WM_CLOSE (assuming this actually terminates the app)? Which unit should I
use?


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to