![]() |
Attach image on ToolBox |
Post Reply
|
| Author | |
loani
Newbie
Joined: 10 August 2006 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Attach image on ToolBoxPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
loani
Newbie
Joined: 10 August 2006 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 August 2006 at 9:12pm |
|
Thanks for your advice.
But I should use CXTToolBox class.
Anyway it helps me.
|
|
![]() |
|
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 |