Recent

Author Topic: Lazarus 4 TStringGrid Columns not appearing  (Read 469 times)

sfeinst

  • Full Member
  • ***
  • Posts: 245
Lazarus 4 TStringGrid Columns not appearing
« on: June 28, 2025, 09:14:22 pm »
I've tested this out in both Windows 11 and Linux Debian using gtk2 components.  I am running Lazarus 4 (as installed by fpcupdeluxe) with FPC 3.2.2

If I have an existing grid on my form with columns defined, then I select the grid and click the Columns property to bring up the list of columns and then I add columns, they are not appearing in the Object Inspector.  I have to reload Lazarus to see them.

Recently I tried repeating with a new grid and the columns did not appear either.

I was wondering if this is an issue with my setup or a bug in Lazarus 4.

I do not see the same behavior in Lazarus 3.8 (also installed using fpcupdeluxe - installed after I noticed the issue in 4).

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11485
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 4 TStringGrid Columns not appearing
« Reply #1 on: June 28, 2025, 09:41:17 pm »
Seems to be a bug.

Here is my Win-10 observation. Possible different from yours

- New App / Drop TStringGrid on the form
- Open "Edit Stringgrid"  by context menu of the Stringrid itself in the OI (or presumingly the designer too)
- Add Columns in the editor
- Press OK
- OI does not show the columns in the component tree (The Columns Node has no children).
- In the designer the columns are visible.

If however I right click the "Columns" node in the OI, and select "Add Item" then the new column is shown (and all the missing ones are shown too)

Also if in the OI, in the list of properties I go to Columns, and click the "..." ellipses button to get the small window for just the columns => then adding new columns will have them shown in the OI tree.


Please report

sfeinst

  • Full Member
  • ***
  • Posts: 245
Re: Lazarus 4 TStringGrid Columns not appearing
« Reply #2 on: June 28, 2025, 10:05:07 pm »
In case anyone wants to follow the issue - issue is 41733

dsiders

  • Hero Member
  • *****
  • Posts: 1453
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

n7800

  • Sr. Member
  • ****
  • Posts: 401
Re: Lazarus 4 TStringGrid Columns not appearing
« Reply #4 on: June 29, 2025, 09:23:05 am »
I added info to the bug tracker (in the specified and related issues). So, the problem is not in the trunk, and it looks like I did it ))

 

TinyPortal © 2005-2018