Track control blocks being clamped to position |
Post Reply |
Author | |
Aaron Koolen
Groupie Joined: 22 July 2009 Status: Offline Points: 32 |
Post Options
Thanks(0)
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 |
|
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 |