Please enable JavaScript to view this site.

KOL/MCK - User Guide

In order to change the height of a horizontally located ruler, in OS Windows you have to change the height of the icons, and there is no other way to control the height of this visual element. Even if you don't use icons but want to increase the height of the ruler, create an image list with an image width of 1 pixel (ImgWidth = 1), and the desired height, and assign it as a set of icons for the ruler, without even adding to this picture list no picture. In the case of using MCK, it is enough to drop the TKOLImageList component onto the form, set ImgWidth = 1 to it in the Object Inspector, and for the TKOLToolbar mirror, assign this list of images as the main set of icons (ImageListNormal property).

 

Sometimes it becomes necessary to position the ruler vertically. In this case, you can do one of the following. Or, you must specify the number of lines in which the buttons should be placed (and this number must be the same as the number of buttons). Alternatively, you should set the tboWrapable option and make the ruler wide enough to wrap the buttons to the next line.

 

There is a known issue with incorrect rendering of the toolbar with the tboFlat option in Windows XP when themes are enabled: the background of the ruler turns black. To resolve this issue, use the design-time property FixFlatXP (it is enabled by default). When this option is enabled, when this OS version (or higher) is detected, the tboFlat option is not enabled.

 

 

pointing-up-finger

In addition, I note that the toolbar window uses window messages TB_xxxx to control itself, which for some unknown reason appeared at the beginning of the user message range WM_USER + n. If the form itself receives such messages in the first place, intercepting them for its own purposes, it is quite possible that the toolbar will not respond to some requests and commands implemented through the same messages. (The same can apply to some other window controls in Windows, for example - list view or tree view). So my advice is not to use the first hundred of custom posts for your own purposes.

 

The TKOLToolbar component is the MCK mirror for this kind of control. It allows you to customize the ruler at the development stage, and not rack your brains over what calls and in what order to make the ruler looks exactly the way the developer wants it.

 

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