Recent

Author Topic: TStringGrid, delete column...?  (Read 4092 times)

julgus

  • New Member
  • *
  • Posts: 29
TStringGrid, delete column...?
« on: October 19, 2016, 07:15:05 pm »
How do I delete an existing column in the IDE? I can add, I can edit the grid but how do I delete a column???  I can make it not visible but I surely must be able to delete it in the ide?
« Last Edit: October 19, 2016, 07:20:29 pm by julgus »

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: TStringGrid, delete column...?
« Reply #1 on: October 19, 2016, 07:35:56 pm »
Select column in Object Inspector and hit key Delete

or

select StringGrid in OI, select property Columns and double click it (or click the button [...]). It will open "Editing Columns" dialog where you can add/delete columns.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

julgus

  • New Member
  • *
  • Posts: 29
Re: TStringGrid, delete column...?
« Reply #2 on: October 19, 2016, 07:45:59 pm »
Thanks!
I got it to work using [fn]+[delete] (not the usual method to delete data when using mac).. when I click columns the property part is blank.. nothing to click on so I can't access "Editing Columns". If I right click on TStringGrid I can access "Edit Stringgrid" but I can't delete a column there.. at least I can't figure it out...

Is the Lazarus ide more Windows biased?

Why is it 2 columns but one only one is defined in the object inspector?
« Last Edit: October 19, 2016, 07:54:19 pm by julgus »

julgus

  • New Member
  • *
  • Posts: 29
Re: TStringGrid, delete column...?
« Reply #3 on: October 19, 2016, 08:42:24 pm »
Thanks! I found the Columns property as you said - I clicked at "Columns" in the Object inspector. And it shows a extra column if I have 1 as "FixedCols". It ought to be 0 as default I may think.

 

TinyPortal © 2005-2018