Please enable JavaScript to view this site.

KOL/MCK - User Guide

Enabled - the "window is allowed" property, i.e. reacts to mouse and keyboard (usually it also changes its visual style, if "not allowed", to show the user that it is useless to click on it at the moment). An important point: although by setting the Enabled property to false, we thereby "disable" automatically and all its child window objects, nevertheless, the appearance for child objects will not change itself, you should use the EnableChildren method to ensure that all child window objects are unavailable. objects);

EnableChildren(e, recursive) - allows or denies an object together with its child objects (if recursive = true, then all child elements of all lower levels are recursively enumerated);

 

Visible - property "visible window". In fact, it sets the potential visibility of the window, i.e. acts exactly the same as in the VCL for TwinControl. When Visible is true, the window is truly visible only when all of its parent objects are visible. And if one of the parents is an object of the tab control type, then it is also required that the tab on which this object is located, together with all intermediate parent objects, is selected as the current one;

ToBeVisible - the property for reading "the window is really visible", in this property the drawback of the Visible property is eliminated, and it is taken into account that all parent objects are visible, and all tabs in the tab control are selected as the current one - the parents on which this object lies;

CreateVisible - this property sets whether the object will be made visible immediately at the time of creation; by default this property is set to false, which ensures the minimum number of redrawings at the time of creating the form and its first display on the screen;

Show - a method for displaying a window and activating it, i.e. transferring keyboard focus to the object window (this method is usually used, by analogy with VCL, to "show" a form, but it can also be successfully used for any visual object, especially for an object that can accept keyboard input, which is why I cite this method is here);

Hide - hides the window (equivalent to setting the Visible property to false);

 

OnShow - an event that fires every time the object window becomes visible. I emphasized, because sometimes it is necessary to perform some actions when the form is first shown, for example, but the programmer forgets to check that the form is actually displayed now for the first time (and not the second, third, and all subsequent times). An important detail: when a window becomes visible as a result of showing a parent window (for example, a form), this event is not triggered;

OnHide - an event that fires when the window becomes invisible. Just like the OnShow event, it fires only when the visibility (i.e. the Visible property) of the window itself changes, and does not react to the change in the visibility of the window parents;

BringToFront - a method for transferring a visual (window) object to the foreground (i.e. if it is partially or completely obscured by other objects, then it comes to the fore, and itself becomes overlapping them in whole or in part);

SendToBack - the inverse method of BringToFront. The order of overlapping windows is changed in such a way that the window of the given object goes to the back in comparison with the neighboring windows.

 

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