|  | 
| 
 | 
| Post Reply   | 
| Author | |
| xxLuda   Newbie   Joined: 03 June 2009 Location: Czech Republic Status: Offline Points: 7 |  Post Options  Thanks(0)  Quote  Reply  Topic: Probably bug fix Posted: 11 June 2009 at 3:58am | 
| 
   In method 'CXTPImageManager::SetIcons' in file 'p:\dependentlibrarieswhole\xtreme toolkitpro v13.0.0\source\common\xtpimagemanager.cpp'
 LN3636: BOOL bIgnoreNulls = (nIconCount == nCount); update to: BOOL bIgnoreNulls = (nIconCount == nCount) || ( nCount>0 && pCommands && pCommands[0]==0 ); Without this fix, this doesn't work correctly UINT btnFilter2[] = {0,1,2,3,4}; m_wndPropertyGrid.GetImageManager()->SetIcons(*pbmpTest,btnFilter2, 5, imgEx.GetIconSize(), xtpImageNormal, TRUE); LV | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 11 June 2009 at 7:18am | 
| 
   Just use
 _wndPropertyGrid.GetImageManager()->SetIcons(*pbmpTest,NULL, 5, imgEx.GetIconSize(), xtpImageNormal, TRUE);   for 0, 1, 2, 3, 4 | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| xxLuda   Newbie   Joined: 03 June 2009 Location: Czech Republic Status: Offline Points: 7 |  Post Options  Thanks(0)  Quote  Reply  Posted: 11 June 2009 at 7:30am | 
| 
   I have large PNG file in CImage in our app with about 1000 icons, and need to assign for example icons  {3,340} to PropertyGrid. (Assign of whole file is realy slow)
 I think, that this function do what i need, but second param of SetIcons is only CmdID and not position in source bmp ;-(. When I try this, SetIcon load first two Icons and assign CmdID 3 and 340 for these icons. Is there any way how to do what I need ? Thanks Edited: I'm already resolved icons extracting by self. Currently I'm creating temporary bitmap with requested icons and pass it to SetIcons method. | |
|  | |
| 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 |