I'm using TTMSFNCKanbanBoard in Windows Metro application.
After creation of columns and items at run time (in formshow event), during the show of the form, the component raise access violation mor time, even when I try to move items up or down.
The code:
procedure TfMain.AddItemOnDashBoard(id,HeaderText,Title, Text: String;colore1,colore2:Tcolor);
var
I: Integer;
S,s1,s2,a1,a2,b1,b2:String;
Col:TTMSFNCKanbanBoardColumn;
Item:TTMSFNCKanbanBoardItem;
found:Boolean;
begin
found:=false;
for I := 0 to DashBoard.Columns.Count-1 do
if DashBoard.Columns[i].Tag=StrToInt(ID) then
begin
found:=true;
col:=DashBoard.Columns[i];
end;
if not found then
BEGIN
Col:=DashBoard.Columns.Add;
Col.HeaderText:=HeaderText;
Col.UseDefaultAppearance:=true;
Col.Expandable:=false;
Col.tag:=StrToInt(ID);
END;
Item:=Col.Items.Add;
Item.Title:=Title;
Item.Text:='<i>'+Text+'</i>';
Item.MarkColor:=colore1;
Item.MarkCorners:=[gcTopLeft,gcTopRight];
Item.MarkRounding:=3;
Item.Rounding:=3;
Item.MarkSizeTop:=8;
Item.MarkType:=[kbmtTop];
Item.RoundingCorners:=[gcTopLeft,gcTopRight,gcBottomLeft,gcBottomRight];
Item.SelectedColor:=colore2;
Item.SelectedStrokeColor:=colore1;
Item.TitleColor:=$00454545;
Item.TextColor:=$007A7A7A;
Item.UseDefaultAppearance:=false;
Item.TitleVerticalTextAlign:=gtaCenter;
Item.TitleVerticalTextAlign:=gtaCenter;
Item.Color:=$00FEFFFF;
Item.Expandable:=false;
end;
[Image 1 before moving items](https://www.xplan.cloud/qc/download/image1.png)
[Image 2 during moving item](https://www.xplan.cloud/qc/download/image2.png)
[Exception during release the item](https://www.xplan.cloud/qc/download/image3.png)