Print Page | Close Window

Problem displaying images in docking tab

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=4457
Printed Date: 12 December 2024 at 5:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem displaying images in docking tab
Posted By: cschmidt
Subject: Problem displaying images in docking tab
Date Posted: 21 June 2006 at 9:01pm
Hi,
 
I have been unsuccessful at getting images to display on my docking tables.  I've created a bitmap resource 16x16 and five wide.  I'm using the following code to add the bitmap to the control:
 
int _images[] = {IDB_XREF_TABLE, IDB_CM_TASK, IDB_OB_CENABLER, IDB_QUESTION, IDB_PG_BOOKCLOSED};
 
SetIcons(IDB_LINKS_WINDOW_IMAGES, _images, 5, RGB(0xFF,0xFF,0xFF));
 
CXTPDockingPane * analysisPane = CreatePane(analysisPaneType, CRect(0, 0,210, 120), xtpPaneDockBottom, NULL);
 analysisPane->SetTitle("Analysis (not initialized)");
 analysisPane->SetIconID(IDB_CM_TASK);
 
CXTPDockingPane * questionPane = CreatePane(questionPaneType, CRect(0, 0,210, 120), xtpPaneDockRight, analysisPane);
 questionPane->SetTitle("Questions (not initialized)");
 questionPane->SetIconID(IDB_QUESTION);
 
CXTPDockingPane * objectivePane = CreatePane(objectivePaneType, CRect(0, 0,210, 120), xtpPaneDockRight, questionPane);
 objectivePane->SetTitle("Objectives (not initialized)");
 objectivePane->SetIconID(IDB_OB_CENABLER);
 
CXTPDockingPane * programPane = CreatePane(programPaneType, CRect(0, 0,210, 120), xtpPaneDockRight, objectivePane);
 programPane->SetTitle("Programs (not initialized)");
 programPane->SetIconID(IDB_PG_BOOKCLOSED);
 
CXTPDockingPane * crossRefPane = CreatePane(crossRefPaneType, CRect(0, 0,210, 120), xtpPaneDockRight, programPane);
 crossRefPane->SetTitle("Cross Reference (not initialized)");
 crossRefPane->SetIconID(IDB_XREF_TABLE);
 
This code resides in a class derived from CXTPDockingPaneManager.  Is there something else that needs to be done to get the images to render on the docking tables?
 
Thanks,
Craig



Replies:
Posted By: Oleg
Date Posted: 21 June 2006 at 9:55pm
Seems ok... What you have in SetIcons method ?

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


Posted By: cschmidt
Date Posted: 22 June 2006 at 11:11am
Thanks for the reply.
 
I ended up recompiling the entire project and it seems to work now.
 
Thanks,
Craig



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