Please enable JavaScript to view this site.

KOL/MCK - User Guide

ShowModal - a function for showing the form and displaying it in the modal dialog mode, for the duration of this dialog all other forms of the application are prohibited, and only reacts to the mouse click - to bring the application to the foreground. The modal dialog ends when the ModalResult property of the modally displayed form is set to a nonzero value (or if the user has closed the form, if possible), after which all forbidden forms are resolved again, and execution continues from the point of call (in this case, ShowModal returns the value set in ModalResult ). A form called modally can nestedly call another modal dialog (and so on up to any nesting level). A special chapter of this book will be devoted to working with modal forms in more detail.

ShowModalParented(C) - shows the form in modal mode in relation to the specified form (i.e., only the specified form is prohibited, all other displayed forms continue to be allowed to switch to them);

ShowModalEx - the same as ShowModal, but not only all other KOL-forms are prohibited, but also all top-level windows for a given thread of execution of commands (thread). Useful for creating modal KOL forms in a VCL application (for example, when a KOL form is launched from a DLL, see the corresponding example);

ModalResult - an integer showing the result of the modal dialog execution (0 - the dialog is still ongoing, less than zero - usually corresponds to the answer "no", in particular, the value -1 is set when the user closes the modal form, all other values ​​can be used by the developer at his discretion );

Modal - checks that the form is shown as modal.

 

KOL / MCK User Guide - Created by Carl Peeraer - Diamant Soft, based on the work of Vladimir Kladov - Artwerp.be

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC