Print Page | Close Window

SplitButtonPopup is missing the dropdown arrow

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=23420
Printed Date: 20 April 2024 at 9:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SplitButtonPopup is missing the dropdown arrow
Posted By: Preetham_kp
Subject: SplitButtonPopup is missing the dropdown arrow
Date Posted: 24 August 2017 at 3:21am
Hi,

Xtp version 16.0 with 64 bit VC++ code I am using with Command bar office 2003 theme.

xtpControlSplitButtonPopup is created without any flaw but I could not figure out why drop down arrow is missing and the SetStyle is xtpButtonIconAndCaption.

I am not understanding why the drop down icon isn't drawn at the time of split button control is created.

Could someone suggest me what I am missing.



Replies:
Posted By: olebed
Date Posted: 03 September 2017 at 12:56pm
Hello Preetham_kp,

I have checked this with our sample CommandBars\CommandBarControls.
There is xtpControlSplitButtonPopup  "Select All" with xtpButtonIconAndCaption style and it is drawn with drop down icon. Is it correct drawn on your side ?

Regards,
 Oleksandr Lebed


Posted By: Preetham_kp
Date Posted: 06 September 2017 at 7:35am
Hi Olebed,

No. Still I could not figure it out. Please go through the code.

windowNavigBar->GetImageManager()->SetIcons(NAVBARICON, buttons, _countof(buttons), CSize(16,16),xtpImageNormal);
popupCtrl = static_cast<CXTPControlPopup*>(windowNavigBar->GetControls()->Add(xtpControlSplitButtonPopup, xtpBarTop);
popupCtrl->CreateControlPopup(xtpControlSplitButtonPopup);

popupCtrl->SetStyle(xtpButtonIconAndCaption)

popupCtrl->SetID(NAVIGATIONBACK);

After this, I am setting the Icon to ImageManager with SetIcon(backIcon, NAVIGATIONBACK,size);

Please let me know your thought on this.

In 32 bit code, same code will draw the back icon with drop down icon for xtpControlSplitButtonPopup.

Regards,
Preetham_kp






Posted By: olebed
Date Posted: 10 September 2017 at 6:20am
Hello Preetham_kp,

It will be much more easy if you give me sample application which I can debug.

Regards,
 Oleksandr Lebed



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