Recent

Author Topic: how to create dynamically panel 2 row lazarus?  (Read 1597 times)

petchanpp

  • Newbie
  • Posts: 1
how to create dynamically panel 2 row lazarus?
« on: September 26, 2016, 10:52:25 am »
Help me please !!

i need to create dynamically panel 2 row 

Code: Pascal  [Select][+][-]
  1. ItemCount1 := manageData.selectDataTable(ItemCount.FieldByName('ID').AsString);
  2.     x := 0;
  3.     while not ItemCount1.EOF do
  4.     begin
  5.          //PanelTable
  6.          PTable := TableBtn.Create(PZone);
  7.          PTable.Parent := PZone;
  8.          PTable.tableName := Format('%s', [ItemCount1.FieldByName('Name').AsString]);
  9.          PTable.Font.Size := 18;
  10.          PTable.Font.Name := 'JS Chawlewhieng';
  11.          PTable.Left := 10 + x * 180;
  12.          PTable.Top := 45;
  13.  
  14.  
  15.          ItemCount1.Next;
  16.          x := x + 1;
  17.     end;              
  18.  



« Last Edit: September 26, 2016, 10:55:59 am by petchanpp »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: how to create dynamically panel 2 row lazarus?
« Reply #1 on: September 26, 2016, 11:48:42 am »
You need to share compilable code (as far as you have got) and actual data used, not just screenshots and a code snippet.
Without seeing how you structure and store and access your data, no one can explain how to display it in the format you desire.

 

TinyPortal © 2005-2018