Print Page | Close Window

Attach image on ToolBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4809
Printed Date: 11 November 2025 at 12:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Attach image on ToolBox
Posted By: loani
Subject: Attach image on ToolBox
Date Posted: 15 August 2006 at 11:17pm
Hello !
I'm makeing toolbox using codejock.
I made without category image but I want to insert category like below picture.
 
 
 
 int iFolder = m_wndToolBox.AddFolder(_T("Task"), 0);
 
 // Add items to the folder, syntax is folder, index, text, image, and item data.
 m_wndToolBox.InsertItem( iFolder, 1,  _T( "Timer" ),    0,  NULL );
 m_wndToolBox.InsertItem( iFolder, 2,  _T( "Event" ),    1,  NULL );
 m_wndToolBox.InsertItem( iFolder, 3,  _T( "Command" ),    2,  NULL );
 // add the second folder
 iFolder = m_wndToolBox.AddFolder(_T("Behavior"), 0);
 m_wndToolBox.InsertItem( iFolder, 4,  _T( "Built in Behavior" ),  3,  NULL );
 m_wndToolBox.InsertItem( iFolder, 5,  _T( "User Define Behavior" ),  4,  NULL );

 // add the second folder
 iFolder = m_wndToolBox.AddFolder(_T("Relation"), 0);
 m_wndToolBox.InsertItem( iFolder, 6,  _T( "Iteration" ), 5,  NULL );
 m_wndToolBox.InsertItem( iFolder, 7,  _T( "Sequence" ),  6,  NULL );
 m_wndToolBox.InsertItem( iFolder, 8,  _T( "Parallel" ),  7,  NULL );
 
This is parts of my code.
In AddFolder() function, there is no option to insert image.
So  please tell me How to insert image.



Replies:
Posted By: Oleg
Date Posted: 16 August 2006 at 11:28am
Hi,
 
CXTToolBox is obsolete class. use CXTPTaskPanel.
See Samples\TaskPanel\ToolBox  sample.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: loani
Date Posted: 16 August 2006 at 9:12pm
Thanks for your advice.
But I should use CXTToolBox class.
Anyway it helps me.



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