Unit SetMatch |
Create graphic matching between items in two list boxex. Useful when conversion of data from one set to another to perform visual matching. Two listboxes are exposured as properties, height and left(right) alignments take place authomatically when the properties are assigned. List boxex must NOT have style LBS_SORTED. DragNotify event occur when one connects two items in different listboxes. If returned value will be true then two items can be connected an back. Run-time property MatchCount informs about amount of lines in the leftbox. Array Match (base 0, maximal index MatchCount-1) for each line in left listbox gives matched line in the right listbox. Method AutoListMatch perfomes authomatical matching, it is base upon: a. Case-unsensitive comparison of lines b. Identity of objects for lines Listboxes can be settled at run-time for an object, that exposes listbos (THeaderControl). FreeWare. No warranties. If one will distribute the source code, reference on author (below) is required. If one will modify the source code, highlighting (by any means) of modifications is required. Author: Sergei Trepalin E-mail: trep@trep.home.chg.ru
Classes |
Functions |
Register - -------------------------------------------------------------------------
Types |
Constants |
Variables |
Functions |
Types |
TDragNotifyEvent=procedure(LeftPoint,RightPoint:integer; var CanDrop:boolean) of object
Constants |
Variables |