Warning: A non-numeric value encountered in /home2/icentarb/public_html/icentar/classes/class.permissions.php on line 101
Warning: filesystem::file_put_contents(data/session_del.php): failed to open stream: Permission denied in /home2/icentarb/public_html/icentar/classes/class.filesystem.php on line 142
procedure TForm1.StringGrid1DrawCell(Sender:
TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
Const //ovde defini?ete boju. Naravno mo?ete ostaviti
//i default boje.
clPaleGreen = TColor($CCFFCC);
clPaleRed = TColor($CCCCFF);
begin
//Ukoliko ?elija ima fokus oboji?ete je u drugu boju
if (gdFocused in State) then begin
StringGrid1.Canvas.Brush.Color := clBlack;
StringGrid1.Canvas.Font.Color := clWhite;
end
else //Ukoliko ?elija nema fokus mo?ete koristiti
//sopstvene boje
If ACol = 2 //druga kolona ?e biti obojena u
//zeleno
then StringGrid1.Canvas.Brush.color := clPaleGreen
else StringGrid1.canvas.brush.Color := clPaleRed;
//Sada bojimo ?elije, ali samo, u