Print Page | Close Window

adding an icon to a docking pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=9681
Printed Date: 04 December 2024 at 2:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: adding an icon to a docking pane
Posted By: vjedlicka
Subject: adding an icon to a docking pane
Date Posted: 24 February 2008 at 4:09pm
Hello,
 
I am trying to add an icon to a docking pane.
I created a toolbar with the icon IDS_PANE_GROUPS_ELEMS.
When I click the icon, the pane shows up, but without the icon.
 
 
code fragment:
 CXTPDockingPane* pwndPane3 = m_paneManager.CreatePane(IDS_PANE_GROUPS_ELEMS, CRect(0, 0,200, 120), xtpPaneDockLeft);
 pwndPane3->SetIconID(IDS_PANE_GROUPS_ELEMS);
 
Thanks for advice
Vaclav
 


-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Replies:
Posted By: Oleg
Date Posted: 25 February 2008 at 2:09pm
Need to add this IDS_PANE_GROUPS_ELEMS to ImageManager of DockingPanes:
 
m_paneManager.GetImageManager()->SetIcon(IDS_PANE_GROUPS_ELEMS , IDS_PANE_GROUPS_ELEMS);


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



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