ClosesForm

[property icon] ClosesForm

Indicates this item will close the form and KClient should link the close button to it

This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: MenuItem

Introduced in KCML version 6.60


The ClosesForm properTy is used To declare ThaT selecTIng The menu opTIon will close The form. When a user aTempTs To close The form using The Windows sysTem menu KClienT will look for an opTIon wiTh This properTy seT. If found The opTIon's SelecT() evenT will be fired in The expecTaTIon ThaT The evenT handler will perform any necessary prompTIng and close The form.

The sysTem menu close can be acTIoned by clicking The 'X' buTon in The capTIon bar, selecTIng 'Close' from The sysTem menu or by pressing AlT+F4. Pressing Escape will noT auTomaTIcally selecT The menu opTIon buT The opTIon's hoT key can be seT To Escape if required.

See also

MenuItem methods, properties and events.