A single developer license allows 1 developer to use the components for development, obtain free updates & support for a full version cycle of the product. The license is not transferable.
A single developer license allows 1 developer to use the components for development, obtain free updates & support for 1 year. The license is not transferable.
A single developer license allows 1 developer to use the components for development, obtain free updates & support for 2 years. The license is not transferable.
A small team license allows 2 developers within the company to use the components for development, obtain free updates & support for a full version cycle of the product. The license is not transferable.
A small team license allows 2 developers within the company to use the components for development, obtain free updates & support for 1 year. The license is not transferable.
A small team license allows 2 developers within the company to use the components for development, obtain free updates & support for 2 years. The license is not transferable.
A site license allows an unlimited number of developers within the company to use the components for development, obtain free updates & support for a full version cycle of the product. Developers can be added at any time during the full version cycle.
A site license allows an unlimited number of developers within the company to use the components for development, obtain free updates & support for 1 year. Developers can be added at any time during the 1 year period.
A site license allows an unlimited number of developers within the company to use the components for development, obtain free updates & support for 2 years. Developers can be added at any time during the 2 year period.
TAdvStringGrid
Example 60 : Using data dependent images with TAdvStringGrid
The method
grid.AddDataImage(col,row,index,horizAlign,vertAlign) adds an imagelist image to
a cell. The index of this imagelist image is dependent of the data in the cell
where the image is added. By default, this means that when the cell has the
value 0, the first image of the imagelist will be displayed, when the value is
1, the second image will be displayed etc...
Not in all circumstances it is convenient that
the cell data should be a number. Suppose that we want to display a Yes / No
field with textual representation 'Y' and 'N' as two distinct images in the grid
from an imagelist. Normally, this would not be possible, but thanks to the
OnGetDisplText, a solution is easily implemented. This OnGetDisplText will
convert the values 'Y' and 'N' to the imagelist index values that are needed to
display the proper images. The code snippet that takes care of this is:
procedure TForm1.AdvStringGrid1GetDisplText(Sender: TObject; ACol,
ARow: Integer; var Value: String);
var
oldvalue: string;
begin
oldvalue := value;
if (ACol = 1) and (ARow > 0) then
begin
if value = 'Y' then
value := '1'
else
value := '0';
end;
end;
With this one event handler, we can set images through: