Print Page | Close Window

Drop Down control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10222
Printed Date: 01 March 2025 at 5:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drop Down control
Posted By: himanshu
Subject: Drop Down control
Date Posted: 14 April 2008 at 9:04am
Hi
Referring to ribbonSample example in samples under
"Insert" Tab , "Illustrations" Group  ,"Picture" dropdown box
if i select option other than picture that is "clip art " or "from scanner or camera"  i want that text and its corresponding image should be displayed in the dropdown box.
How should we do that.
 
 
Thanks in Advance
Himanshu



Replies:
Posted By: Oleg
Date Posted: 14 April 2008 at 9:13am
Hi,
Just add image with this id to ImageManager.
 
See CMainFrame::LoadIcons() method.


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


Posted By: himanshu
Date Posted: 15 April 2008 at 12:28am
Hi
 
I want to display the newly selected item in place of  previous one which was displayed to the user.
Now user should see this selected item on top.
 
-himanshu


Posted By: himanshu
Date Posted: 16 April 2008 at 8:37am
hi
 
could i have any update here.
 
for example i am attaching two images from visual studio.
when i select the resource view option the is shown in this control.
 


Posted By: Oleg
Date Posted: 16 April 2008 at 2:43pm
Hi,
Use SetIconId method + Update handler. Serach "SetIconId" in forum


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


Posted By: himanshu
Date Posted: 17 April 2008 at 12:52am
Hi
We are using SetIcon method instead of SetIconId.
pCommandBars->GetImageManager()->SetIcons(hBmp, uarr, _countof(uarr), CSize(32, 32), xtpImageNormal, TRUE);
How we can achieve for this?
 
-himanshu


Posted By: Oleg
Date Posted: 17 April 2008 at 1:18am

Hello,

send to mailto:support@codejock.com - support@codejock.com sample, I will show how to change it.


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


Posted By: himanshu
Date Posted: 08 May 2008 at 2:08am
hi
 
i am attaching my sample project
could you show me how to do that
this project need to build with visual studio2005
 
thanks
himanshu
  https://forum.codejock.com/uploads/20080508_020750_TestMFCApp.zip - uploads/20080508_020750_TestMFCApp.zip
 


Posted By: Oleg
Date Posted: 08 May 2008 at 3:58am

Hello,

 
Here updated VisualStudio sample.
https://forum.codejock.com/uploads/20080508_035801_GUI_VisualStudi.zip - GUI_VisualStudi.zip


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


Posted By: himanshu
Date Posted: 08 May 2008 at 4:54am
i am getting three errors compiling the project in vs2005
 
1)Cannot open include file: 'AboutDlg.h'
 
2)'XTP_DPN_CONTEXTMENU' : undeclared identifier
 
3)'xtpThemeVisualStudio2008' : undeclared identifier
 
 
thanks


Posted By: Oleg
Date Posted: 08 May 2008 at 9:26am

Hi,

Its project from 12.0 release. its easy to fix each of this error.


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


Posted By: himanshu
Date Posted: 09 May 2008 at 12:44am
i am using v11.2.2 of Xtreme toolkitpro.
 
Do i need to download and use 12.0
 
-himanshu


Posted By: Oleg
Date Posted: 09 May 2008 at 1:19am
Hi,
You can use 11.2.2 version. What error you can't fix ??
 
1. Remove AboutDlg.h
2. Remove block with 'XTP_DPN_CONTEXTMENU'
3. replace to available theme.


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


Posted By: himanshu
Date Posted: 09 May 2008 at 2:13am
please find the linking error list for this project scroll below
 


Posted By: Oleg
Date Posted: 09 May 2008 at 4:49am
Hi,
 
Change this option
 
Properties->c/c++>Language->Treate wchar_t as Builtin Type =yes
(if it was "yes" change to "No" )


-------------
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