Lazarus

Using the Lazarus IDE => Designer => Topic started by: julgus on October 19, 2016, 07:15:05 pm

Title: TStringGrid, delete column...?
Post by: julgus 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?
Title: Re: TStringGrid, delete column...?
Post by: Blaazen 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.
Title: Re: TStringGrid, delete column...?
Post by: julgus 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?
Title: Re: TStringGrid, delete column...?
Post by: julgus 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