![]() |
Grid row without children not indented (CJ 24.2) |
Post Reply ![]() |
Author | |
Heath ![]() Groupie ![]() Joined: 05 April 2004 Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() Posted: 11 September 2025 at 4:02am |
Following migration from CJ 24.1 to 24.2, the grid ident for rows without children are no longer indented to align with rows with children (with the expand icon). The release notes say... Text indent computation fixed for a group row with no icon Default tree item indentation fixed in Grid control I used the fix below where pGridCtrl is a pointer to CXTPGridControl. CXTPGridPaintManager* pGridPaintManager = pGridCtrl->GetPaintManager(); pGridPaintManager->m_nTreeTextIndent = 25; pGridPaintManager->m_nTreeTextIndentRowChildren = 25; I assume this is a bug as the default has been changed from the behaviour seen in many previous releases. Regards, Heath
|
|
![]() |
|
dbrookes ![]() Groupie ![]() Joined: 30 August 2019 Location: Australia Status: Offline Points: 74 |
![]() ![]() ![]() ![]() ![]() |
I found this issue in 24.2 as well. It looked like the change made it so that the expand button space is not taken by an item without children. Meaning items on the same level didn't line up anymore. But that also caused other issues like the in-place edit control no longer lining up with the item text. I ended up patching the grid record item drawing to revert the change. Here is a patch:
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |