Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Track control blocks being clamped to position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Track control blocks being clamped to position

 Post Reply Post Reply
Author
Message
Aaron Koolen View Drop Down
Groupie
Groupie


Joined: 22 July 2009
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Koolen Quote  Post ReplyReply Direct Link To This Post Topic: Track control blocks being clamped to position
    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
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.184 seconds.