Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Attach image on ToolBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Attach image on ToolBox

 Post Reply Post Reply
Author
Message
loani View Drop Down
Newbie
Newbie


Joined: 10 August 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote loani Quote  Post ReplyReply Direct Link To This Post Topic: Attach image on ToolBox
    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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
loani View Drop Down
Newbie
Newbie


Joined: 10 August 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote loani Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 9:12pm
Thanks for your advice.
But I should use CXTToolBox class.
Anyway it helps me.
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.031 seconds.