Icons in report control records not displaying |
Post Reply |
Author | ||
mark.allender
Newbie Joined: 12 January 2009 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 12 January 2009 at 12:53pm |
|
Hello --
We have built a report control and would like to attach icons to the items in a particular column. When we first populate the record, I can get an icon to show up. I do something like this
This works great, and the icon shows up just fine. However, we occationally update some of the information in the row and we need to change the icon on the fly. I have code that does this:
The icon doesn't show up, and in fact, the original icon that was displayed no longer displays. The second update is wrapped up between BeginUpdate() and EndUpdate() calls. I thought about calling Populate(), but that crashed, although I suspect that is because we are calling this second update code through an onSelectionChanged event when the user clicks on a new report row.
Are we missing something fundamental about how report control record icons work? Thanks for any help.
Product: Xtreme ToolkitPro (MFC) version 11.2.0
Platform: Vista (64bit) Language: Visual Studio C++ 2005 |
||
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
|
Where did you add the icon? The report control has its own image manager, so you have to add your report icons explicitly: m_wndReport.GetImageManager()->SetIcons(...);
Alternatively, you can set the global image manager to be used in the report control (this is my preferred method):
XTPImageManager()->InternalAddRef();
m_wndReport.SetImageManager(XTPImageManager());
|
||
PokerMemento - http://www.pokermemento.com/
|
||
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 |