Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Grid row without children not indented (CJ 24.2)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Grid row without children not indented (CJ 24.2)

 Post Reply Post Reply
Author
Message
Heath View Drop Down
Groupie
Groupie


Joined: 05 April 2004
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Heath Quote  Post ReplyReply Direct Link To This Post Topic: Grid row without children not indented (CJ 24.2)
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.