Print Page | Close Window

Track control blocks being clamped to position

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16750
Printed Date: 27 November 2024 at 2:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Track control blocks being clamped to position
Posted By: Aaron Koolen
Subject: Track control blocks being clamped to position
Date Posted: 24 May 2010 at 11:47pm
I have added some CXTPTrackBlock items to a TrackControl and their positions are being modified underneath me. After creating the control but before it's displayed I insert a series of items. However the code inside void CXTPTrackControlItem::RecalcLayout() clamps the block within the arbitraty value 320000.

This is happening because the TrackControl associated with a block is only ever set when the TrackControlItem that houses the block is drawn. And because I'm populating the control before it's first drawn the code clamps  the position.

Is there a suggested workaround to this? It seems the only real way around this is to wait until the first draw of the TrackControl before populating it.

Thoughts?




-------------
Product: Xtreme ToolkitPro v13.3.0 (MFC)
Platform: Windows XP (32bit) - SP 3
Language: Visual C++ 6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net