Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Setup offsets in tree like mode?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Setup offsets in tree like mode?

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Setup offsets in tree like mode?
    Posted: 12 September 2011 at 4:09pm
Hi;

I'm using the report control in tree like mode but have so, me problems to get the items positioned in a consistent way.
See screenshot:


The symbols are not correctly aligned [(1) in picture] and the distance between the expand/collapse bitmap and the item images are too large [(2)].
Any ideas how to setup the control to solve this?

BTW: For this project I'm using the latest release 15.1.3 of the toolkit.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2011 at 4:54pm
Forget the question. Found it by myself:

    GetPaintManager()->m_nTreeTextIndentRowParent=-4;
    GetPaintManager()->m_nTreeTextIndentRowChildren=0;

solves it.
Perhaps the CJ boys should initialize the members this way to have consistent positions.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.141 seconds.